From 12e14effb737cb4e42c5c000cfa6fce878a324b7 Mon Sep 17 00:00:00 2001 From: rwst Date: Fri, 24 Feb 2006 17:23:48 +0000 Subject: [PATCH] including typecheck trying to prevent #1432680 --- src/ui/dialog/dialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); } -- 2.30.2