Revision: 15859
          http://sourceforge.net/p/skim-app/code/15859
Author:   hofman
Date:     2025-12-11 15:14:46 +0000 (Thu, 11 Dec 2025)
Log Message:
-----------
no need to clip when drawing normally

Modified Paths:
--------------
    trunk/SKLevelIndicator.m

Modified: trunk/SKLevelIndicator.m
===================================================================
--- trunk/SKLevelIndicator.m    2025-12-11 15:08:59 UTC (rev 15858)
+++ trunk/SKLevelIndicator.m    2025-12-11 15:14:46 UTC (rev 15859)
@@ -60,10 +60,7 @@
 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
     CGFloat cellHeight = [self cellSize].height;
     if (fabs(NSHeight(cellFrame) - cellHeight) <= 0.0) {
-        [NSGraphicsContext saveGraphicsState];
-        [[NSBezierPath bezierPathWithRect:cellFrame] addClip];
         [super drawInteriorWithFrame:cellFrame inView:controlView];
-        [NSGraphicsContext restoreGraphicsState];
     } else if (NSHeight(cellFrame) <= 2.0 * (cellHeight - EDGE_HEIGHT)) {
         NSRect topFrame, bottomFrame, frame = cellFrame;
         NSDivideRect(cellFrame, &topFrame, &bottomFrame, floor(0.5 * 
NSHeight(cellFrame)), NSRectEdgeMinY);

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to