]> git.saurik.com Git - wxWidgets.git/commitdiff
fix restoration of the old font size in DoGetTextExtent() (thanks icc for a nice...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Nov 2008 14:22:09 +0000 (14:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Nov 2008 14:22:09 +0000 (14:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gnome/gprint.cpp

index 2e389c56e6cc464cb4a5499c375f06b19460ebeb..d3e6fbe58d2b281e56de68366bb70c6ab29362cc 100644 (file)
@@ -1925,8 +1925,8 @@ void wxGnomePrinterDCImpl::DoGetTextExtent(const wxString& string, wxCoord *widt
     {
         // scale the font and apply it
         PangoFontDescription *desc = theFont->GetNativeFontInfo()->description;
-        float size = pango_font_description_get_size(desc);
-        size = size * GetFontPointSizeAdjustment(72.0);
+        oldSize = pango_font_description_get_size(desc);
+        float size = oldSize * GetFontPointSizeAdjustment(72.0);
         pango_font_description_set_size(desc, (gint)size);
 
         pango_layout_set_font_description(m_layout, desc);