Revision: 14446
http://sourceforge.net/p/skim-app/code/14446
Author: hofman
Date: 2024-09-01 21:09:27 +0000 (Sun, 01 Sep 2024)
Log Message:
-----------
Allow real rectangle for obtain command
Modified Paths:
--------------
trunk/SKObtainCommand.m
Modified: trunk/SKObtainCommand.m
===================================================================
--- trunk/SKObtainCommand.m 2024-09-01 17:44:34 UTC (rev 14445)
+++ trunk/SKObtainCommand.m 2024-09-01 21:09:27 UTC (rev 14446)
@@ -67,7 +67,7 @@
type = typeSInt32;
} else if (type == typeQDRectangle || type == typeRectangle) {
type = typeQDRectangle;
- } else if (type != typePage && type != typeRTF) {
+ } else if (type != typePage && type != typeRTF && type != typeNSRectangle)
{
[self setScriptErrorNumber:NSOperationNotSupportedForKeyScriptError];
return nil;
}
@@ -75,7 +75,7 @@
if ([data isKindOfClass:[NSData class]] == NO) {
data = nil;
selection = [PDFSelection selectionWithSpecifier:[[self arguments]
objectForKey:@"Object"] onPage:page];
- } else if (type == typeSInt32 || type == typeQDRectangle || type ==
typePage) {
+ } else if (type == typeSInt32 || type == typeQDRectangle || type ==
typeNSRectangle || type == typePage) {
[self setScriptErrorNumber:NSOperationNotSupportedForKeyScriptError];
return nil;
}
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