]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
fix combobox dropdown position in RTL (patch 1623127)
[wxWidgets.git] / src / gtk / dcclient.cpp
index 1fdc8aab532705f80689f98118d643f61957877d..c79e4175d6f8ec223d5d8fb1c10d287086e1c2c0 100644 (file)
@@ -1771,7 +1771,7 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
     }
 
     // Reset old font description
-    if (theFont)
+    if (theFont->IsOk())
         pango_layout_set_font_description( m_layout, m_fontdesc );
 }