]> git.saurik.com Git - wxWidgets.git/commitdiff
lost save state call
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 31 Oct 2006 08:43:17 +0000 (08:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 31 Oct 2006 08:43:17 +0000 (08:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/graphics.cpp

index 218a1f2e640c070112bc8ae8a51d9d65ae6c35c5..ec1da84e6b82b8c4564fd3b4a97d8354382e8f70 100755 (executable)
@@ -1248,14 +1248,15 @@ void wxMacCoreGraphicsContext::EnsureIsValid()
         wxASSERT_MSG( status == noErr , wxT("Cannot nest wxDCs on the same window") );
 
         CGContextConcatCTM( m_cgContext, m_windowTransform );
-        CGContextSaveGState( m_cgContext );
-        m_releaseContext = true;
-        if ( !HIShapeIsEmpty(m_clipRgn) )
-        {
-            HIShapeReplacePathInCGContext( m_clipRgn, m_cgContext );
-            CGContextClip( m_cgContext );
-        }
-    }
+               CGContextSaveGState( m_cgContext );
+               m_releaseContext = true;
+               if ( !HIShapeIsEmpty(m_clipRgn) )
+               {
+                       HIShapeReplacePathInCGContext( m_clipRgn, m_cgContext );
+                       CGContextClip( m_cgContext );
+               }
+               CGContextSaveGState( m_cgContext );
+       }
 }