Revision: 15016 http://sourceforge.net/p/skim-app/code/15016 Author: hofman Date: 2025-03-24 15:52:08 +0000 (Mon, 24 Mar 2025) Log Message: ----------- Use enum value behind @available
Modified Paths: -------------- trunk/SKColorSwatch.m Modified: trunk/SKColorSwatch.m =================================================================== --- trunk/SKColorSwatch.m 2025-03-24 15:48:39 UTC (rev 15015) +++ trunk/SKColorSwatch.m 2025-03-24 15:52:08 UTC (rev 15016) @@ -904,8 +904,10 @@ - (CGFloat)bezelHeight { CGFloat height = [[self cell] cellSize].height - BEZEL_INSET_TOP - BEZEL_INSET_BOTTOM; - if ([self controlSize] == 3) - height -= LARGE_SIZE_HEIGHT_OFFSET; + if (@available(macOS 11.0, *)) { + if ([self controlSize] == NSControlSizeLarge) + height -= LARGE_SIZE_HEIGHT_OFFSET; + } return height; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit