Revision: 16600
          http://sourceforge.net/p/skim-app/code/16600
Author:   hofman
Date:     2026-10-03 17:57:16 +0000 (Sat, 03 Oct 2026)
Log Message:
-----------
define variable when needed

Modified Paths:
--------------
    trunk/SkimNotes/PDFAnnotation_SKNExtensions.m

Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.m       2026-10-03 17:55:06 UTC 
(rev 16599)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.m       2026-10-03 17:57:16 UTC 
(rev 16600)
@@ -714,12 +714,12 @@
             if ((font == nil || fontColor == nil) && (value = [self 
valueForAnnotationKey:@"/DA"])) {
                 NSScanner *scanner = [[NSScanner alloc] initWithString:value];
                 if (font == nil) {
-                    NSString *fontName;
-                    double fontSize;
                     if ([scanner scanUpToString:@"Tf" intoString:NULL] && 
[scanner isAtEnd] == NO) {
                         NSUInteger location = [scanner scanLocation];
                         NSRange r = [value rangeOfString:@"/" 
options:NSBackwardsSearch range:NSMakeRange(0, location)];
                         if (r.location != NSNotFound) {
+                            NSString *fontName;
+                            double fontSize;
                             [scanner setScanLocation:NSMaxRange(r)];
                             if ([scanner 
scanUpToCharactersFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet] 
intoString:&fontName] &&
                                 [scanner scanDouble:&fontSize] &&

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