]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/aga.cpp
A fix for attribrute sorting, but it's still broken if there are
[wxWidgets.git] / src / mac / carbon / aga.cpp
index 0185303bd1c1906ece9620f58d12269fa8586d1b..9a752cbe6d9fe609844955e65a3f0605cfeef32e 100644 (file)
@@ -1,3 +1,4 @@
+#include "wx/dc.h"
 #include "wx/mac/uma.h"
 #include "wx/mac/aga.h"
 
@@ -2585,7 +2586,7 @@ void AGAPortHelper::Setup( GrafPtr newport )
        GetPenState( &oldPenState ) ;
        GetBackColor( &oldBackColor ) ;
        GetForeColor( &oldForeColor ) ;
-
+       wxASSERT( clip == NULL ) ;
        clip = NewRgn() ;
        GetClip( clip );
        font = GetPortTextFont( newport);
@@ -2607,6 +2608,7 @@ AGAPortHelper::~AGAPortHelper()
        if ( clip )
        {
                SetPort( nport ) ;
+               PenNormal() ;
                SetClip( clip ) ;
                DisposeRgn( clip ) ;
                RGBForeColor(&oldForeColor);