git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@492
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if(m_EventId == 0) // nothing to do
return;
if(m_EventId == 0) // nothing to do
return;
- m_FindPos.x = event.GetX();
- m_FindPos.y = event.GetY();
+ // this is unintuitive
+ wxClientDC dc(this);
+ PrepareDC( dc );
+
+ m_FindPos.x = dc.DeviceToLogicalX( event.GetX() );
+ m_FindPos.y = dc.DeviceToLogicalY( event.GetY() );
+
m_FoundObject = NULL;
#ifdef WXLAYOUT_DEBUG
m_FoundObject = NULL;
#ifdef WXLAYOUT_DEBUG