From: Vadim Zeitlin Date: Wed, 22 May 2002 16:27:06 +0000 (+0000) Subject: added a check which should prevent the crash of bug 555111 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b72aa48cdeca3530ffb6ac5af438835d58bf79d9?ds=inline added a check which should prevent the crash of bug 555111 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dnd.cpp b/src/gtk/dnd.cpp index ca8a96f4b6..d8487a913b 100644 --- a/src/gtk/dnd.cpp +++ b/src/gtk/dnd.cpp @@ -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; diff --git a/src/gtk1/dnd.cpp b/src/gtk1/dnd.cpp index ca8a96f4b6..d8487a913b 100644 --- a/src/gtk1/dnd.cpp +++ b/src/gtk1/dnd.cpp @@ -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;