]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/aga.cpp
Up-ported code to make tree item visible when programmatically
[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);