From 1dac3cb00c9c48db63894265aa57158d7279848a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 Mar 2009 10:34:35 +0000 Subject: [PATCH] fix old font size restoration in DoGetTextExtent() [backport of r56791 from trunk] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/gnome/gprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 2e06055a50..0d297febe8 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -1836,8 +1836,8 @@ void wxGnomePrintDC::DoGetTextExtent(const wxString& string, wxCoord *width, wxC { // 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);