]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/renderer.cpp
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.
[wxWidgets.git] / src / gtk / renderer.cpp
index 248c9f7c470e2bc78e5c44e8eeb0ea352f7da03b..5f74edc88b778e4c7bdf3da1738fa983f5c589a7 100644 (file)
@@ -145,7 +145,7 @@ static GdkWindow* wxGetGdkWindowForDC(wxWindow* win, wxDC& dc)
     GdkWindow* gdk_window = NULL;
 
 #if wxUSE_GRAPHICS_CONTEXT
-    if ( dc.IsKindOf( CLASSINFO(wxGCDC) ) )
+    if ( wxDynamicCast(&dc, wxGCDC) )
         gdk_window = win->GTKGetDrawingWindow();
     else
 #endif