Revision: 12137
http://sourceforge.net/p/skim-app/code/12137
Author: hofman
Date: 2021-02-28 00:06:14 +0000 (Sun, 28 Feb 2021)
Log Message:
-----------
Make sure cell is initially enabled
Modified Paths:
--------------
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2021-02-27 16:31:10 UTC (rev 12136)
+++ trunk/SKColorSwatch.m 2021-02-28 00:06:14 UTC (rev 12137)
@@ -126,7 +126,7 @@
cell = [[[NSSegmentedCell alloc] init] autorelease];
[cell setAction:[[self cell] action]];
[cell setTarget:[[self cell] target]];
- [cell setEnabled:[self cell] && [[self cell] isEnabled]];
+ [cell setEnabled:[self cell] == nil || [[self cell] isEnabled]];
[self setCell:cell];
}
[cell setSegmentCount:1];
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