Revision: 16353
          http://sourceforge.net/p/skim-app/code/16353
Author:   hofman
Date:     2026-06-03 14:56:11 +0000 (Wed, 03 Jun 2026)
Log Message:
-----------
check annotation type first

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-06-03 14:05:43 UTC (rev 16352)
+++ trunk/SKPDFView.m   2026-06-03 14:56:11 UTC (rev 16353)
@@ -2629,7 +2629,7 @@
 }
 
 - (void)addAnnotationWithType:(SKNoteType)annotationType {
-    if (IS_TEXT_OR_NOTE_TOOL && (annotationType == SKNoteTypeInk || 
(([[NSUserDefaults standardUserDefaults] 
boolForKey:SKNewNoteRequiresSelectionKey] || IS_MARKUP(annotationType)) && 
[[self currentSelection] hasCharacters] == NO))) {
+    if (IS_TEXT_OR_NOTE_TOOL && (annotationType == SKNoteTypeInk || 
((IS_MARKUP(annotationType) || [[NSUserDefaults standardUserDefaults] 
boolForKey:SKNewNoteRequiresSelectionKey]) && [[self currentSelection] 
hasCharacters] == NO))) {
         [self 
setTemporaryToolMode:TEMP_TOOL_MODE_FROM_NOTE_TYPE(annotationType)];
     } else {
         [self addAnnotationWithType:annotationType selection:nil 
point:SKUnspecifiedPoint];

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

Reply via email to