Revision: 14348
          http://sourceforge.net/p/skim-app/code/14348
Author:   hofman
Date:     2024-06-25 23:09:20 +0000 (Tue, 25 Jun 2024)
Log Message:
-----------
fix length check

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

Modified: trunk/SKSelectionCommand.m
===================================================================
--- trunk/SKSelectionCommand.m  2024-06-25 22:59:59 UTC (rev 14347)
+++ trunk/SKSelectionCommand.m  2024-06-25 23:09:20 UTC (rev 14348)
@@ -61,7 +61,7 @@
             page = nil;
     }
     
-    if ([rectOrPoint length] == sizeof(Point))
+    if ([rectOrPoint length] == sizeof(Rect))
         return [[page selectionForRect:NSInsetRect([rectOrPoint 
rectValueAsQDRect], -1.0, -1.0)] objectSpecifiers];
     else if (point)
         return [[page selectionFromPoint:[rectOrPoint pointValueAsQDPoint] 
toPoint:[point pointValueAsQDPoint]] objectSpecifiers];

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