Revision: 12588
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12588&view=rev
Author:   amaxwell
Date:     2008-01-19 13:02:59 -0800 (Sat, 19 Jan 2008)

Log Message:
-----------
Clip to drawing rect in case the value is higher than expected.

Modified Paths:
--------------
    trunk/bibdesk/BDSKLevelIndicatorCell.m

Modified: trunk/bibdesk/BDSKLevelIndicatorCell.m
===================================================================
--- trunk/bibdesk/BDSKLevelIndicatorCell.m      2008-01-19 19:51:09 UTC (rev 
12587)
+++ trunk/bibdesk/BDSKLevelIndicatorCell.m      2008-01-19 21:02:59 UTC (rev 
12588)
@@ -156,6 +156,7 @@
     
     CGContextRef ctxt = [[NSGraphicsContext currentContext] graphicsPort];
     CGContextSaveGState(ctxt);
+    CGContextClipToRect(ctxt, *(CGRect *)&cellFrame);
     if ([controlView isFlipped]) {
         CGContextTranslateCTM(ctxt, 0, NSMaxY(r));
         CGContextScaleCTM(ctxt, 1, -1);


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