X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6264b550ad4bc372287abce98770cf056aa72057..a8e6bf8ae22d1d76bcbe1e42519b2f425718fbc2:/src/mac/carbon/window.cpp diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 11948e733d..b3100bf14e 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -349,7 +349,7 @@ void wxWindowMac::DoGetPosition(int *x, int *y) const xx = m_x ; yy = m_y ; - if (GetParent()) + if (!m_macWindowData && GetParent()) { wxPoint pt(GetParent()->GetClientAreaOrigin()); xx -= pt.x; @@ -670,6 +670,7 @@ void wxWindowMac::DoSetSize(int x, int y, int width, int height, int sizeFlags) // get the current size and position... int currentX, currentY; GetPosition(¤tX, ¤tY); + int currentW,currentH; GetSize(¤tW, ¤tH);