X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd2e20ff9c1a4a904a136ba6a4dce40fd8c31338..49a91764b57168d9f441578001b3206a7330ee70:/src/mac/carbon/control.cpp?ds=inline diff --git a/src/mac/carbon/control.cpp b/src/mac/carbon/control.cpp index e3511e87a1..f0714b067a 100644 --- a/src/mac/carbon/control.cpp +++ b/src/mac/carbon/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); }