Revision: 4995
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4995&view=rev
Author:   hofman
Date:     2008-11-26 12:57:14 +0000 (Wed, 26 Nov 2008)

Log Message:
-----------
make sure annotations removed as skim note cease to be active

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

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2008-11-25 17:31:24 UTC (rev 4994)
+++ trunk/SKPDFDocument.m       2008-11-26 12:57:14 UTC (rev 4995)
@@ -867,6 +867,8 @@
 
 - (void)removeAsNote:(PDFAnnotation *)annotation {
     [[[self undoManager] prepareWithInvocationTarget:self] 
addAsNote:annotation];
+    if ([[self pdfView] activeAnnotation] == annotation)
+        [[self pdfView] setActiveAnnotation:nil];
     [annotation setSkimNote:NO];
     [[self mainWindowController] removeNote:annotation];                
 }


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