Revision: 12576
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12576&view=rev
Author:   amaxwell
Date:     2008-01-18 22:08:25 -0800 (Fri, 18 Jan 2008)

Log Message:
-----------
save GState before setting fill color

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m      2008-01-19 
05:01:17 UTC (rev 12575)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVTextIcon.m      2008-01-19 
06:08:25 UTC (rev 12576)
@@ -378,11 +378,12 @@
     NSRect stringRect = NSZeroRect;
     stringRect.size = paperSize;
     
+    CGContextSaveGState(ctxt);
+
     // assume a white page background; could maybe read from the attributed 
string's background color?
     CGContextSetRGBFillColor(ctxt, 1.0, 1.0, 1.0, 1.0);
     CGContextFillRect(ctxt, *(CGRect *)&stringRect);
     
-    CGContextSaveGState(ctxt);
     CGContextConcatCTM(ctxt, pageTransform);
     
     // we flipped the CTM in our bitmap context since NSLayoutManager expects 
a flipped context


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to