Revision: 16334
http://sourceforge.net/p/skim-app/code/16334
Author: hofman
Date: 2026-06-01 09:41:25 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
rotate initial start/end point of new line notes on rotated pages
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-01 09:02:03 UTC (rev 16333)
+++ trunk/SKPDFView.m 2026-06-01 09:41:25 UTC (rev 16334)
@@ -2440,6 +2440,27 @@
}
} else if (type) {
newAnnotation = [PDFAnnotation newSkimNoteWithBounds:bounds
forType:type];
+ if (annotationType == SKNoteTypeLine && isInitial == NO) {
+ NSInteger rotation = [page intrinsicRotation];
+ if (rotation != 0) {
+ switch (rotation) {
+ case 90:
+ [newAnnotation
setStartPoint:NSMakePoint(NSMinY(bounds), NSMaxX(bounds))];
+ [newAnnotation setEndPoint:NSMakePoint(NSMaxY(bounds),
NSMinX(bounds))];
+ break;
+ case 180:
+ [newAnnotation
setStartPoint:NSMakePoint(NSMaxX(bounds), NSMaxY(bounds))];
+ [newAnnotation setEndPoint:NSMakePoint(NSMinX(bounds),
NSMinY(bounds))];
+ break;
+ case 270:
+ [newAnnotation
setStartPoint:NSMakePoint(NSMaxY(bounds), NSMinX(bounds))];
+ [newAnnotation setEndPoint:NSMakePoint(NSMinY(bounds),
NSMaxX(bounds))];
+ break;
+ default:
+ break;
+ }
+ }
+ }
}
if ([newAnnotations count] > 0) {
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