]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
Removed usage of GetInternalFont.
[wxWidgets.git] / src / gtk / dcclient.cpp
index d36b26b870c1c42e9f7e8a9a23dfc961d45cf8b4..6ecc0ace44edce28ba6535126466e7769c6c11ee 100644 (file)
@@ -1732,14 +1732,17 @@ void wxWindowDC::SetFont( const wxFont &font )
 
     m_font = font;
 #ifdef __WXGTK20__
-    m_fontdesc = m_font.GetNativeFontInfo()->description;
-   
-    if (m_owner)
+    if (m_font.Ok())
     {
-        if (m_font.GetNoAntiAliasing())
-            m_context = m_owner->GtkGetPangoX11Context();
-        else
-            m_context = m_owner->GtkGetPangoDefaultContext();
+        m_fontdesc = m_font.GetNativeFontInfo()->description;
+   
+        if (m_owner)
+        {
+            if (m_font.GetNoAntiAliasing())
+                m_context = m_owner->GtkGetPangoX11Context();
+            else
+                m_context = m_owner->GtkGetPangoDefaultContext();
+        }
     }
 #endif
 }