Revision: 12934 http://sourceforge.net/p/skim-app/code/12934 Author: hofman Date: 2022-06-22 09:15:20 +0000 (Wed, 22 Jun 2022) Log Message: ----------- slightly outset rect to get selection in scripting to account for rounding errors
Modified Paths: -------------- trunk/SKSelectionCommand.m Modified: trunk/SKSelectionCommand.m =================================================================== --- trunk/SKSelectionCommand.m 2022-06-21 14:16:09 UTC (rev 12933) +++ trunk/SKSelectionCommand.m 2022-06-22 09:15:20 UTC (rev 12934) @@ -64,7 +64,7 @@ if (point) return [[page selectionFromPoint:[rectOrPoint pointValueAsQDPoint] toPoint:[point pointValueAsQDPoint]] objectSpecifiers]; else - return [[page selectionForRect:[rectOrPoint rectValueAsQDRect]] objectSpecifiers]; + return [[page selectionForRect:NSInsetRect([rectOrPoint rectValueAsQDRect], -0.5, -0.5)] 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit