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)
|
wxDragResult wxDropTarget::OnData(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxDragResult def)
|
||||||
{
|
{
|
||||||
GetData();
|
return GetData() ? def : wxDragNone;
|
||||||
return def;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDropTarget::GetData()
|
bool wxDropTarget::GetData()
|
||||||
|
Reference in New Issue
Block a user