Revision: 16343
http://sourceforge.net/p/skim-app/code/16343
Author: hofman
Date: 2026-06-01 22:17:48 +0000 (Mon, 01 Jun 2026)
Log Message:
-----------
mutaually exclusive cases
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-06-01 16:54:18 UTC (rev 16342)
+++ trunk/SKPDFView.m 2026-06-01 22:17:48 UTC (rev 16343)
@@ -2422,29 +2422,29 @@
if (newAnnotation == nil)
return NO;
- if (annotationType == SKNoteTypeLine && isInitial == NO) {
- 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;
+ if (annotationType == SKNoteTypeLine) {
+ if (isInitial == NO) {
+ 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;
+ }
}
}
- }
-
- if (annotationType != SKNoteTypeLine && annotationType !=
SKNoteTypeInk) {
+ } else if (annotationType != SKNoteTypeInk) {
if ([text length] > 0)
[newAnnotation setString:text];
else if (isInitial == NO && disableUpdateString == 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