Revision: 15599
          http://sourceforge.net/p/skim-app/code/15599
Author:   hofman
Date:     2025-07-03 14:22:35 +0000 (Thu, 03 Jul 2025)
Log Message:
-----------
don't use local variable

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-07-03 14:20:05 UTC (rev 15598)
+++ trunk/SKPDFView.m   2025-07-03 14:22:35 UTC (rev 15599)
@@ -4214,7 +4214,6 @@
         return NO;
     
     if (hideNotes == NO && [[self document] allowsNotes]) {
-        BOOL isInk = toolMode == SKToolModeNote && annotationMode == 
SKNoteTypeInk;
         NSUInteger modifiers = [theEvent modifierFlags];
         if ((modifiers & NSEventModifierFlagOption) && [newCurrentAnnotation 
isMovable] &&
             [newCurrentAnnotation resizeHandleForPoint:point scaleFactor:[self 
scaleFactor]] == 0 &&
@@ -4223,7 +4222,7 @@
             newCurrentAnnotation = [PDFAnnotation 
newSkimNoteWithProperties:[newCurrentAnnotation SkimNoteProperties]];
             [self addAnnotation:newCurrentAnnotation toPage:page select:NO];
         } else if (([newCurrentAnnotation isMarkup] ||
-                    (isInk && (newCurrentAnnotation != currentAnnotation || 
(modifiers & (NSEventModifierFlagShift | NSEventModifierFlagCapsLock))))) &&
+                    (toolMode == SKToolModeNote && annotationMode == 
SKNoteTypeInk && (newCurrentAnnotation != currentAnnotation || (modifiers & 
(NSEventModifierFlagShift | NSEventModifierFlagCapsLock))))) &&
                    [NSApp willDragMouse]) {
             // don't drag markup notes or in freehand tool mode, unless the 
note was previously selected, so we can select text or draw freehand strokes
             return NO;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to