Revision: 12157
http://sourceforge.net/p/skim-app/code/12157
Author: hofman
Date: 2021-03-02 16:04:33 +0000 (Tue, 02 Mar 2021)
Log Message:
-----------
Save graphics state for drawing highlights
Modified Paths:
--------------
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2021-03-02 15:41:43 UTC (rev 12156)
+++ trunk/SKColorSwatch.m 2021-03-02 16:04:33 UTC (rev 12157)
@@ -957,8 +957,7 @@
}
[NSGraphicsContext saveGraphicsState];
- [NSGraphicsContext restoreGraphicsState];
-
+
if (highlighted || selected) {
if (selected) {
path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:2.0
yRadius:2.0];
@@ -985,6 +984,8 @@
[path setLineWidth:2.0];
[path stroke];
}
+
+ [NSGraphicsContext restoreGraphicsState];
}
- (BOOL)accessibilityElement {
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