X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd2e20ff9c1a4a904a136ba6a4dce40fd8c31338..5adad46628e545a6d4172ecf3a0cb848934f5cd0:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index e3511e87a1..f0714b067a 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -13,6 +13,8 @@ #pragma implementation "control.h" #endif +#include "wx/defs.h" + #include "wx/control.h" #include "wx/panel.h" #include "wx/app.h" @@ -514,7 +516,8 @@ void wxControl::DoSetSize(int x, int y, MacRepositionScrollBars() ; // To consider -> should the parameters be the effective or the virtual coordinates (AdjustForParent..) - wxMoveEvent event(wxPoint(m_x, m_y), m_windowId); + wxPoint point(m_x, m_y); + wxMoveEvent event(point, m_windowId); event.SetEventObject(this); GetEventHandler()->ProcessEvent(event); } @@ -534,7 +537,8 @@ void wxControl::DoSetSize(int x, int y, } MacRepositionScrollBars() ; - wxSizeEvent event(wxSize(m_width, m_height), m_windowId); + wxSize size(m_width, m_height); + wxSizeEvent event(size, m_windowId); event.SetEventObject(this); GetEventHandler()->ProcessEvent(event); }