]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/control.cpp
fix for a fatal bug in wxMGL's wxDir
[wxWidgets.git] / src / mac / control.cpp
index 946d01f263bf3d633722fdf044cfa215d411b618..1f62d46592cbce6a7308f326925c8a664db66bbf 100644 (file)
@@ -647,7 +647,6 @@ void wxControl::MacRedrawControl()
             {
                 wxMacDrawingHelper help( win ) ;
                 // the mac control manager always assumes to have the origin at 0,0
-                SetOrigin( 0 , 0 ) ;
                 wxDC::MacSetupBackgroundForCurrentPort( MacGetBackgroundBrush() ) ;
                 UMADrawControl( m_macControl ) ;
             }
@@ -667,7 +666,6 @@ void wxControl::OnPaint(wxPaintEvent& event)
             {
                 wxMacDrawingHelper help( win ) ;
                 // the mac control manager always assumes to have the origin at 0,0
-                SetOrigin( 0 , 0 ) ;
                 wxDC::MacSetupBackgroundForCurrentPort( MacGetBackgroundBrush() ) ;
                 UMADrawControl( m_macControl ) ;
             }