]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/aga.cpp
Updated for new library and DLL names on MSW
[wxWidgets.git] / src / mac / aga.cpp
index 572caed82a5c41215c718e61a06dd9146efb8563..9a752cbe6d9fe609844955e65a3f0605cfeef32e 100644 (file)
@@ -2586,7 +2586,7 @@ void AGAPortHelper::Setup( GrafPtr newport )
        GetPenState( &oldPenState ) ;
        GetBackColor( &oldBackColor ) ;
        GetForeColor( &oldForeColor ) ;
-
+       wxASSERT( clip == NULL ) ;
        clip = NewRgn() ;
        GetClip( clip );
        font = GetPortTextFont( newport);
@@ -2608,6 +2608,7 @@ AGAPortHelper::~AGAPortHelper()
        if ( clip )
        {
                SetPort( nport ) ;
+               PenNormal() ;
                SetClip( clip ) ;
                DisposeRgn( clip ) ;
                RGBForeColor(&oldForeColor);