From d0a0c6e36aeebdd7a43b1374af8ea63d24217512 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 20 Jan 2009 13:54:06 +0000 Subject: [PATCH] Minor error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/dataview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 0df4c89a4b..876424ee60 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -1195,10 +1195,16 @@ void MyFrame::OnDrop( wxDataViewEvent &event ) // only allow drags for item, not containers if (m_music_model->IsContainer( item ) ) + { event.Veto(); + return; + } if (event.GetDataFormat() != wxDF_TEXT) + { event.Veto(); + return; + } wxTextDataObject obj; obj.SetData( wxDF_TEXT, event.GetDataSize(), event.GetDataBuffer() ); -- 2.45.2