From b72aa48cdeca3530ffb6ac5af438835d58bf79d9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 May 2002 16:27:06 +0000 Subject: [PATCH] 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 --- src/gtk/dnd.cpp | 4 +++- src/gtk1/dnd.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.45.2