Make OnData behave like other implementations in terms of paying attention to what GetData returns.

This commit is contained in:
Jay Nabonne
2019-01-30 15:25:51 +00:00
parent 76eee80738
commit 58639481c6

View File

@@ -265,8 +265,7 @@ bool wxDropTarget::OnDrop(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
wxDragResult wxDropTarget::OnData(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxDragResult def)
{
GetData();
return def;
return GetData() ? def : wxDragNone;
}
bool wxDropTarget::GetData()