Minor error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-20 13:54:06 +00:00
parent e4de825ee6
commit d0a0c6e36a

View 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() );