no real changes, just fixed confusing (to both people and coverity) mix of testing for m_parent and GetParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2924,8 +2924,8 @@ void wxWindowGTK::DoGetPosition( int *x, int *y ) const
|
||||
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;
|
||||
|
Reference in New Issue
Block a user