Revision: 16335
http://sourceforge.net/p/skim-app/code/16335
Author: hofman
Date: 2026-06-01 14:10:08 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
start/end points are relative to note bounds
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-01 09:41:25 UTC (rev 16334)
+++ trunk/SKPDFView.m 2026-06-01 14:10:08 UTC (rev 16335)
@@ -2445,16 +2445,16 @@
if (rotation != 0) {
switch (rotation) {
case 90:
- [newAnnotation
setStartPoint:NSMakePoint(NSMinY(bounds), NSMaxX(bounds))];
- [newAnnotation setEndPoint:NSMakePoint(NSMaxY(bounds),
NSMinX(bounds))];
+ [newAnnotation setStartPoint:NSMakePoint(0.0,
NSWidth(bounds))];
+ [newAnnotation
setEndPoint:NSMakePoint(NSHeight(bounds), 0.0)];
break;
case 180:
- [newAnnotation
setStartPoint:NSMakePoint(NSMaxX(bounds), NSMaxY(bounds))];
- [newAnnotation setEndPoint:NSMakePoint(NSMinX(bounds),
NSMinY(bounds))];
+ [newAnnotation
setStartPoint:NSMakePoint(NSWidth(bounds), NSHeight(bounds))];
+ [newAnnotation setEndPoint:NSZeroPoint];
break;
case 270:
- [newAnnotation
setStartPoint:NSMakePoint(NSMaxY(bounds), NSMinX(bounds))];
- [newAnnotation setEndPoint:NSMakePoint(NSMinY(bounds),
NSMaxX(bounds))];
+ [newAnnotation
setStartPoint:NSMakePoint(NSHeight(bounds), 0.0)];
+ [newAnnotation setEndPoint:NSMakePoint(0.0,
NSWidth(bounds))];
break;
default:
break;
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