Revision: 14766
          http://sourceforge.net/p/skim-app/code/14766
Author:   hofman
Date:     2024-11-30 15:26:59 +0000 (Sat, 30 Nov 2024)
Log Message:
-----------
don't allow printing when locked

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

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2024-11-30 10:33:41 UTC (rev 14765)
+++ trunk/SKPDFDocument.m       2024-11-30 15:26:59 UTC (rev 14766)
@@ -103,7 +103,7 @@
 }
 
 // fool the document into thinking it always allows annotations
-- (BOOL)allowsCommenting { return YES; }
+- (BOOL)allowsCommenting { return [self isLocked] == NO; }
 
 - (BOOL)realAllowsCommenting { return [super allowsCommenting]; }
 

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