X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eaa1d68c29cd273971be9d60008045e470c2d46..a4fbdd76c156f235c319d13a5a4c6df99eee9517:/src/mac/aga.cpp?ds=inline diff --git a/src/mac/aga.cpp b/src/mac/aga.cpp index 572caed82a..9a752cbe6d 100644 --- a/src/mac/aga.cpp +++ b/src/mac/aga.cpp @@ -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);