Revision: 15759
          http://sourceforge.net/p/skim-app/code/15759
Author:   hofman
Date:     2025-11-04 10:32:46 +0000 (Tue, 04 Nov 2025)
Log Message:
-----------
don't bother drawing discrete level indicator continuous, as we don't use that 
style

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

Modified: trunk/SKLevelIndicator.m
===================================================================
--- trunk/SKLevelIndicator.m    2025-11-04 10:16:59 UTC (rev 15758)
+++ trunk/SKLevelIndicator.m    2025-11-04 10:32:46 UTC (rev 15759)
@@ -58,9 +58,6 @@
 #define EDGE_HEIGHT 4.0
 
 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
-    BOOL drawDiscreteContinuous = ([self levelIndicatorStyle] == 
NSDiscreteCapacityLevelIndicatorStyle) && (NSWidth(cellFrame) + 1.0 < 3.0 * 
[self maxValue]);
-    if (drawDiscreteContinuous)
-        [self setLevelIndicatorStyle:NSContinuousCapacityLevelIndicatorStyle];
     CGFloat cellHeight = [self cellSize].height;
     if (fabs(NSHeight(cellFrame) - cellHeight) <= 0.0) {
         [NSGraphicsContext saveGraphicsState];
@@ -103,8 +100,6 @@
         [super drawWithFrame:frame inView:controlView];
         [NSGraphicsContext restoreGraphicsState];
     }
-    if (drawDiscreteContinuous)
-        [self setLevelIndicatorStyle:NSDiscreteCapacityLevelIndicatorStyle];
 }
 
 - (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle {

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