Revision: 4696
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4696&view=rev
Author:   hofman
Date:     2008-09-25 16:46:34 +0000 (Thu, 25 Sep 2008)

Log Message:
-----------
raise error when attempting to add note without a page

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

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2008-09-25 16:45:25 UTC (rev 4695)
+++ trunk/SKPDFDocument.m       2008-09-25 16:46:34 UTC (rev 4696)
@@ -1767,6 +1767,8 @@
         
         [pdfView addAnnotation:newNote toPage:page];
         [[self undoManager] setActionName:NSLocalizedString(@"Add Note", 
@"Undo action name")];
+    } else {
+        [[NSScriptCommand currentCommand] 
setScriptErrorNumber:NSReceiversCantHandleCommandScriptError]; 
     }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to