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;