]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dc.cpp
Fix page positioning when the tabs are on a side different than
[wxWidgets.git] / src / mac / dc.cpp
index 8038c0b217547dde04fb2ecf74d5fc8b60960a80..b429b618310d24095d2ff45797bf5d76ac7af671 100644 (file)
@@ -89,12 +89,13 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win )
         OffsetRgn( m_newClip , x , y ) ;
         SetClip( m_newClip ) ;
         DisposeRgn( insidergn ) ;
-#endif
+#else
         int x = 0 , y = 0;
         win->MacWindowToRootWindow( &x,&y ) ;
         CopyRgn( (RgnHandle) ((wxWindow*)win)->MacGetVisibleRegion().GetWXHRGN() , m_newClip ) ;
         OffsetRgn( m_newClip , x , y ) ;
         SetClip( m_newClip ) ;
+#endif  
     }
 }