Revision: 14346
          http://sourceforge.net/p/skim-app/code/14346
Author:   hofman
Date:     2024-06-25 22:57:48 +0000 (Tue, 25 Jun 2024)
Log Message:
-----------
return selection for line for 'selection for' command with only one point as 
parameter

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

Modified: trunk/SKSelectionCommand.m
===================================================================
--- trunk/SKSelectionCommand.m  2024-06-25 22:37:48 UTC (rev 14345)
+++ trunk/SKSelectionCommand.m  2024-06-25 22:57:48 UTC (rev 14346)
@@ -61,10 +61,12 @@
             page = nil;
     }
     
-    if (point)
+    if ([rectOrPoint length] == sizeof(Point))
+        return [[page selectionForRect:NSInsetRect([rectOrPoint 
rectValueAsQDRect], -1.0, -1.0)] objectSpecifiers];
+    else if (point)
         return [[page selectionFromPoint:[rectOrPoint pointValueAsQDPoint] 
toPoint:[point pointValueAsQDPoint]] objectSpecifiers];
     else
-        return [[page selectionForRect:NSInsetRect([rectOrPoint 
rectValueAsQDRect], -1.0, -1.0)] objectSpecifiers];
+        return [[page selectionForLineAtPoint:[rectOrPoint 
pointValueAsQDPoint]] objectSpecifiers];
 }
 
 @end

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