diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 4bdc4076a0..d776d44acd 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -1412,9 +1412,9 @@ void wxGnomePrintDC::DoGetTextExtent(const wxString& string, wxCoord *width, wxC pango_layout_get_pixel_size( m_layout, &w, &h ); if (width) - *width = (wxCoord) w; + *width = (wxCoord)(w / m_scaleX); if (height) - *height = (wxCoord) h; + *height = (wxCoord)(h / m_scaleY); if (descent) { PangoLayoutIter *iter = pango_layout_get_iter(m_layout); diff --git a/src/gtk1/gnome/gprint.cpp b/src/gtk1/gnome/gprint.cpp index 4bdc4076a0..d776d44acd 100644 --- a/src/gtk1/gnome/gprint.cpp +++ b/src/gtk1/gnome/gprint.cpp @@ -1412,9 +1412,9 @@ void wxGnomePrintDC::DoGetTextExtent(const wxString& string, wxCoord *width, wxC pango_layout_get_pixel_size( m_layout, &w, &h ); if (width) - *width = (wxCoord) w; + *width = (wxCoord)(w / m_scaleX); if (height) - *height = (wxCoord) h; + *height = (wxCoord)(h / m_scaleY); if (descent) { PangoLayoutIter *iter = pango_layout_get_iter(m_layout);