git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45152
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int org_y = 0;
gdk_window_get_origin( source, &org_x, &org_y );
int org_y = 0;
gdk_window_get_origin( source, &org_x, &org_y );
- if (GetParent())
- GetParent()->ScreenToClient(&org_x, &org_y);
+ if (m_parent)
+ m_parent->ScreenToClient(&org_x, &org_y);
wx_const_cast(wxWindowGTK*, this)->m_x = org_x;
wx_const_cast(wxWindowGTK*, this)->m_y = org_y;
wx_const_cast(wxWindowGTK*, this)->m_x = org_x;
wx_const_cast(wxWindowGTK*, this)->m_y = org_y;