Revision: 12168
http://sourceforge.net/p/skim-app/code/12168
Author: hofman
Date: 2021-03-05 17:38:38 +0000 (Fri, 05 Mar 2021)
Log Message:
-----------
Clip drop indicator only at end
Modified Paths:
--------------
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2021-03-05 16:54:56 UTC (rev 12167)
+++ trunk/SKColorSwatch.m 2021-03-05 17:38:38 UTC (rev 12168)
@@ -982,7 +982,8 @@
[path lineToPoint:NSMakePoint(NSMaxX(rect) + 0.5, NSMaxY(rect) +
1.0)];
}
[path setLineWidth:3.0];
- if (NSContainsRect(NSInsetRect([[self superview] bounds], 2.0, 0.0),
[self frame]) == NO)
+ if ((dropLocation == SKColorSwatchDropBefore && NSMinX([[self
superview] bounds]) + 2.0 >= NSMinX([self frame])) ||
+ (dropLocation == SKColorSwatchDropAfter && NSMaxX([[self
superview] bounds]) - 2.0 <= NSMaxX([self frame])))
[[NSBezierPath bezierPathWithRoundedRect:NSInsetRect(rect, -2.0,
-2.0) xRadius:4.0 yRadius:4.0] addClip];
[path stroke];
}
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