Revision: 16628
http://sourceforge.net/p/skim-app/code/16628
Author: hofman
Date: 2026-10-07 15:57:25 +0000 (Wed, 07 Oct 2026)
Log Message:
-----------
rename variables
Modified Paths:
--------------
trunk/SKPDFView.m
trunk/SKPresentationView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-10-07 14:52:19 UTC (rev 16627)
+++ trunk/SKPDFView.m 2026-10-07 15:57:25 UTC (rev 16628)
@@ -4245,9 +4245,9 @@
NSPoint prevPoint = point;
NSWindow *window = [self window];
BOOL wasMouseCoalescingEnabled = [NSEvent isMouseCoalescingEnabled];
- BOOL isOption = ([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0;
- BOOL wasOption = NO;
- BOOL wantsBreak = isOption;
+ BOOL addLine = ([theEvent modifierFlags] & NSEventModifierFlagOption) != 0;
+ BOOL addedLine = NO;
+ BOOL wantsBreak = addLine;
NSBezierPath *bezierPath = nil;
CGFloat scale = [self scaleFactor];
CAShapeLayer *layer = nil;
@@ -4313,7 +4313,7 @@
if (NSEqualPoints(point, prevPoint)) {
prevPoint = oldPrevPoint;
continue;
- } else if (isOption && wantsBreak == NO) {
+ } else if (addLine && wantsBreak == NO) {
NSInteger eltCount = [bezierPath elementCount];
NSPoint points[3] = {point, point, point};
prevPoint = oldPrevPoint;
@@ -4327,13 +4327,13 @@
} else {
if (wantsBreak && NO == NSEqualPoints(prevPoint, oldPrevPoint))
[bezierPath lineToPoint:prevPoint];
- if (isOption)
+ if (addLine)
[bezierPath lineToPoint:point];
else
[PDFAnnotation addPoint:point toSkimNotesPath:bezierPath];
}
- wasOption = isOption;
+ addedLine = addLine;
wantsBreak = NO;
CGMutablePathRef cgPath = CGPathCreateMutable();
@@ -4341,10 +4341,10 @@
[layer setPath:cgPath];
CGPathRelease(cgPath);
- } else if ((([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0) != isOption) {
+ } else if ((([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0) != addLine) {
- isOption = isOption == NO;
- wantsBreak = isOption || wasOption;
+ addLine = addLine == NO;
+ wantsBreak = addLine || addedLine;
}
}
Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m 2026-10-07 14:52:19 UTC (rev 16627)
+++ trunk/SKPresentationView.m 2026-10-07 15:57:25 UTC (rev 16628)
@@ -954,9 +954,9 @@
NSPoint prevPoint = point;
NSWindow *window = [self window];
BOOL wasMouseCoalescingEnabled = [NSEvent isMouseCoalescingEnabled];
- BOOL isOption = ([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0;
- BOOL wasOption = NO;
- BOOL wantsBreak = isOption;
+ BOOL addLine = ([theEvent modifierFlags] & NSEventModifierFlagOption) != 0;
+ BOOL addedLine = NO;
+ BOOL wantsBreak = addLine;
NSBezierPath *bezierPath = nil;
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
CAShapeLayer *layer = nil;
@@ -1006,7 +1006,7 @@
if (NSEqualPoints(point, prevPoint)) {
prevPoint = oldPrevPoint;
continue;
- } else if (isOption && wantsBreak == NO) {
+ } else if (addLine && wantsBreak == NO) {
NSInteger eltCount = [bezierPath elementCount];
NSPoint points[3] = {point, point, point};
prevPoint = oldPrevPoint;
@@ -1020,7 +1020,7 @@
} else {
if (wantsBreak && NO == NSEqualPoints(prevPoint, oldPrevPoint))
[bezierPath lineToPoint:prevPoint];
- if (isOption)
+ if (addLine)
[bezierPath lineToPoint:point];
else
[PDFAnnotation addPoint:point toSkimNotesPath:bezierPath];
@@ -1027,7 +1027,7 @@
}
- wasOption = isOption;
+ addedLine = addLine;
wantsBreak = NO;
CGMutablePathRef cgPath = CGPathCreateMutable();
@@ -1035,10 +1035,10 @@
[layer setPath:cgPath];
CGPathRelease(cgPath);
- } else if ((([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0) != isOption) {
+ } else if ((([theEvent modifierFlags] & NSEventModifierFlagOption) !=
0) != addLine) {
- isOption = isOption == NO;
- wantsBreak = isOption || wasOption;
+ addLine = addLine == NO;
+ wantsBreak = addLine || addedLine;
}
}
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