Revision: 3391
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3391&view=rev
Author:   hofman
Date:     2008-02-12 04:53:17 -0800 (Tue, 12 Feb 2008)

Log Message:
-----------
Explicitly clear change count when it reaches zero due to undo of ann action 
that should not dirty the document.

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

Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m  2008-02-11 19:16:24 UTC (rev 3390)
+++ trunk/SKDocument.m  2008-02-12 12:53:17 UTC (rev 3391)
@@ -202,6 +202,9 @@
 
 - (void)undoableActionDoesntDirtyDocumentDeferred:(NSNumber *)anUndoState {
        [self updateChangeCount:[anUndoState boolValue] ? NSChangeDone : 
NSChangeUndone];
+    // this should be automatic, but Leopard does not seem to do this
+    if ([[self valueForKey:@"changeCount"] intValue] == 0)
+        [self updateChangeCount:NSChangeCleared];
 }
 
 - (void)undoableActionDoesntDirtyDocument {


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to