Revision: 29687
http://sourceforge.net/p/bibdesk/svn/29687
Author: hofman
Date: 2025-10-09 14:58:47 +0000 (Thu, 09 Oct 2025)
Log Message:
-----------
set variale to isEnabled rather than checking both
Modified Paths:
--------------
trunk/bibdesk/BDSKRatingButtonCell.m
Modified: trunk/bibdesk/BDSKRatingButtonCell.m
===================================================================
--- trunk/bibdesk/BDSKRatingButtonCell.m 2025-10-09 14:50:09 UTC (rev
29686)
+++ trunk/bibdesk/BDSKRatingButtonCell.m 2025-10-09 14:58:47 UTC (rev
29687)
@@ -340,7 +340,7 @@
NSRect rect = NSMakeRect(NSMinX(buttonRect) + margin + MARKER_INSET,
NSMinY(buttonRect) + 0.5 * (NSHeight(buttonRect) - outerSize) + MARKER_INSET,
outerSize - 2.0 * MARKER_INSET, outerSize - 2.0 * MARKER_INSET);
NSColor *color = nil;
NSColor *borderColor = nil;
- BOOL showPlaceholders = YES;
+ BOOL showPlaceholders = [self isEnabled];
NSUInteger i = 0;
[NSGraphicsContext saveGraphicsState];
@@ -377,7 +377,7 @@
rect.origin.x += outerSize;
}
- if (showPlaceholders && [self isEnabled] && rating < maxRating) {
+ if (showPlaceholders && rating < maxRating) {
rect.origin.x = NSMidX(rect) - 0.5 * PLACEHOLDER_SIZE;
rect.origin.y = NSMidY(rect) - 0.5 * PLACEHOLDER_SIZE;
rect.size.width = rect.size.height = PLACEHOLDER_SIZE;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit