diff --git a/src/gtk/dnd.cpp b/src/gtk/dnd.cpp index 2498e7c423..72b29d4bf5 100644 --- a/src/gtk/dnd.cpp +++ b/src/gtk/dnd.cpp @@ -208,7 +208,7 @@ wxDropSource::DragResult wxDropSource::DoDragDrop( bool WXUNUSED(bAllowMove) ) if (gdk_dnd.dnd_grabbed) return None; if (gdk_dnd.drag_really) return None; - wxASSERT_MSG( data, "wxDragSource: no data" ); + wxASSERT_MSG( m_data, "wxDragSource: no data" ); if (!m_data) return None; if (m_data->GetDataSize() == 0) return None; diff --git a/src/gtk1/dnd.cpp b/src/gtk1/dnd.cpp index 2498e7c423..72b29d4bf5 100644 --- a/src/gtk1/dnd.cpp +++ b/src/gtk1/dnd.cpp @@ -208,7 +208,7 @@ wxDropSource::DragResult wxDropSource::DoDragDrop( bool WXUNUSED(bAllowMove) ) if (gdk_dnd.dnd_grabbed) return None; if (gdk_dnd.drag_really) return None; - wxASSERT_MSG( data, "wxDragSource: no data" ); + wxASSERT_MSG( m_data, "wxDragSource: no data" ); if (!m_data) return None; if (m_data->GetDataSize() == 0) return None;