Revision: 16354
http://sourceforge.net/p/skim-app/code/16354
Author: hofman
Date: 2026-06-04 14:00:34 +0000 (Thu, 04 Jun 2026)
Log Message:
-----------
don't use variable
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-03 14:56:11 UTC (rev 16353)
+++ trunk/SKPDFView.m 2026-06-04 14:00:34 UTC (rev 16354)
@@ -2581,24 +2581,21 @@
}
if (annotationType == SKNoteTypeLine) {
- NSInteger rotation = [page intrinsicRotation];
- if (rotation != 0) {
- switch (rotation) {
- case 90:
- [newAnnotation setStartPoint:NSMakePoint(0.0,
NSWidth(bounds))];
- [newAnnotation setEndPoint:NSMakePoint(NSHeight(bounds),
0.0)];
- break;
- case 180:
- [newAnnotation setStartPoint:NSMakePoint(NSWidth(bounds),
NSHeight(bounds))];
- [newAnnotation setEndPoint:NSZeroPoint];
- break;
- case 270:
- [newAnnotation setStartPoint:NSMakePoint(NSHeight(bounds),
0.0)];
- [newAnnotation setEndPoint:NSMakePoint(0.0,
NSWidth(bounds))];
- break;
- default:
- break;
- }
+ switch ([page intrinsicRotation]) {
+ case 90:
+ [newAnnotation setStartPoint:NSMakePoint(0.0,
NSWidth(bounds))];
+ [newAnnotation setEndPoint:NSMakePoint(NSHeight(bounds), 0.0)];
+ break;
+ case 180:
+ [newAnnotation setStartPoint:NSMakePoint(NSWidth(bounds),
NSHeight(bounds))];
+ [newAnnotation setEndPoint:NSZeroPoint];
+ break;
+ case 270:
+ [newAnnotation setStartPoint:NSMakePoint(NSHeight(bounds),
0.0)];
+ [newAnnotation setEndPoint:NSMakePoint(0.0, NSWidth(bounds))];
+ break;
+ default:
+ break;
}
} else {
NSInteger disableUpdateString = [[NSUserDefaults standardUserDefaults]
integerForKey:SKDisableUpdateContentsFromEnclosedTextKey];
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