Revision: 15096
          http://sourceforge.net/p/skim-app/code/15096
Author:   hofman
Date:     2025-04-07 14:01:50 +0000 (Mon, 07 Apr 2025)
Log Message:
-----------
Use old string when selections are non-interlacing

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-04-07 09:35:49 UTC (rev 15095)
+++ trunk/SKPDFView.m   2025-04-07 14:01:50 UTC (rev 15096)
@@ -4142,7 +4142,7 @@
                 if ([string1 length] > 0 && [string2 length] > 0) {
                     if ([sel safeIndexOfFirstCharacterOnPage:page] > (copyText 
? [newSel safeIndexOfLastCharacterOnPage:page] : [newSel 
safeIndexOfFirstCharacterOnPage:page]))
                        string = [NSString stringWithFormat:@"%@ %@", string2, 
string1];
-                    else if (copyText || [newSel 
safeIndexOfFirstCharacterOnPage:page] > [sel 
safeIndexOfFirstCharacterOnPage:page])
+                    else if (copyText || [newSel 
safeIndexOfFirstCharacterOnPage:page] > [sel 
safeIndexOfLastCharacterOnPage:page])
                         string = [NSString stringWithFormat:@"%@ %@", string1, 
string2];
                 }
                 [sel addSelection:newSel];

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