From: mental Date: Fri, 24 Feb 2006 20:51:22 +0000 (+0000) Subject: amend workaround for #1432690 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b762e7e3419c0f8b89824be9ffb5174aa14f4da;p=inkscape.git amend workaround for #1432690 --- diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index 238c6d9f7..7cb360a43 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -15,7 +15,6 @@ # include #endif -#include #include #include @@ -118,9 +117,7 @@ Dialog::read_geometry() void hideCallback(GtkObject *object, gpointer dlgPtr) { - Dialog* example; - if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) - return; + g_return_if_fail( dlgPtr != NULL ); Dialog *dlg = (Dialog *)dlgPtr; dlg->onHideF12(); @@ -128,9 +125,7 @@ void hideCallback(GtkObject *object, gpointer dlgPtr) void unhideCallback(GtkObject *object, gpointer dlgPtr) { - Dialog* example; - if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) - return; + g_return_if_fail( dlgPtr != NULL ); Dialog *dlg = (Dialog *)dlgPtr; dlg->onShowF12();