]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/stattext.cpp
Changed code to get rid of a compiler warning about statement always being FALSE
[wxWidgets.git] / src / gtk / stattext.cpp
index 39664e6f76b62c67be38b988302290acc1881ea7..6e00a778984022dd9675ba0b10f9c9681b91a08d 100644 (file)
@@ -150,7 +150,7 @@ wxSize wxStaticText::DoGetBestSize() const
     GtkRequisition req;
     req.width = 2;
     req.height = 2;
-    (* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request )
+    (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(m_widget) )->size_request )
         (m_widget, &req );
 
     return wxSize(req.width, req.height);