]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor error
authorRobert Roebling <robert@roebling.de>
Tue, 20 Jan 2009 13:54:06 +0000 (13:54 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 20 Jan 2009 13:54:06 +0000 (13:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/dataview.cpp

index 0df4c89a4b85f823065bbe536eab22c6ff0fa81d..876424ee6059c05c9f914a6d791e818af60e0ddf 100644 (file)
@@ -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() );