X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e3e485bc855bb6aa3e3e7978eac9fb5eea0287e..a9b456ff08a33913d3021420c49cff52896e1513:/src/mac/carbon/toolbar.cpp diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index 9b1ef2d3c9..cbc918a101 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -19,8 +19,6 @@ #include "wx/wx.h" #endif -#include "wx/bitmap.h" - #include "wx/mac/uma.h" #include "wx/geometry.h" @@ -394,13 +392,6 @@ void wxToolBarTool::SetPosition( const wxPoint& position ) int mac_x = position.x; int mac_y = position.y; - if ( ! GetToolBar()->MacGetTopLevelWindow()->MacUsesCompositing() ) - { - GetToolBar()->MacWindowToRootWindow( &x, &y ); - mac_x += x; - mac_y += y; - } - if ( IsButton() ) { Rect contrlRect;