]> git.saurik.com Git - wxWidgets.git/commitdiff
added a check which should prevent the crash of bug 555111
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 May 2002 16:27:06 +0000 (16:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 May 2002 16:27:06 +0000 (16:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dnd.cpp
src/gtk1/dnd.cpp

index ca8a96f4b620c6c7ef9ff146ab1f9f721b99cfa4..d8487a913b1c8411ddc7febed532f7e084b4c0a7 100644 (file)
@@ -301,7 +301,9 @@ static gboolean target_drag_drop( GtkWidget *widget,
 #endif
 
         GdkAtom format = drop_target->GetMatchingPair();
-        wxASSERT( format );
+
+        // this does happen somehow, see bug 555111
+        wxCHECK_MSG( format, FALSE, _T("no matching GdkAtom for format?") )
 
 /*
         GdkDragAction action = GDK_ACTION_MOVE;
index ca8a96f4b620c6c7ef9ff146ab1f9f721b99cfa4..d8487a913b1c8411ddc7febed532f7e084b4c0a7 100644 (file)
@@ -301,7 +301,9 @@ static gboolean target_drag_drop( GtkWidget *widget,
 #endif
 
         GdkAtom format = drop_target->GetMatchingPair();
-        wxASSERT( format );
+
+        // this does happen somehow, see bug 555111
+        wxCHECK_MSG( format, FALSE, _T("no matching GdkAtom for format?") )
 
 /*
         GdkDragAction action = GDK_ACTION_MOVE;