From: rwst Date: Fri, 24 Feb 2006 17:23:48 +0000 (+0000) Subject: including typecheck trying to prevent #1432680 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12e14effb737cb4e42c5c000cfa6fce878a324b7;p=inkscape.git including typecheck trying to prevent #1432680 --- diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index aa48f7eb8..b4e491bf9 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -15,6 +15,7 @@ # include #endif +#include #include #include @@ -111,12 +112,20 @@ Dialog::read_geometry() void hideCallback(GtkObject *object, gpointer dlgPtr) { + Dialog* example; + if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) + return; + Dialog *dlg = (Dialog *)dlgPtr; dlg->onHideF12(); } void unhideCallback(GtkObject *object, gpointer dlgPtr) { + Dialog* example; + if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) + return; + Dialog *dlg = (Dialog *)dlgPtr; dlg->onShowF12(); }