Make OnData behave like other implementations in terms of paying attention to what GetData returns.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user