From 0926201ce5bf4510b642430a08a2ad76cd865563 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 17 Feb 2009 12:47:20 +0000 Subject: [PATCH] Fix for #25607 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27899 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSUndoManager.m | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3cc7f8c7a..e02eabafc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-17 Richard Frith-Macdonald + + * Source/NSUndoManager.m: Don't post checkpoint notification when + beginning top level group. Fix for #25607 + 2009-02-16 Adam Fedor * configure.ac: Look in LOCAL for headers/libs diff --git a/Source/NSUndoManager.m b/Source/NSUndoManager.m index c7fa7bc5b..08b632164 100644 --- a/Source/NSUndoManager.m +++ b/Source/NSUndoManager.m @@ -189,14 +189,15 @@ * Starts a new grouping of undo actions which can be * atomically undone by an [-undo] invocation. * This method posts an NSUndoManagerCheckpointNotification - * unless an undo is currently in progress. It posts an + * unless an undo is currently in progress or this is begiinng a + * top level group. It posts an * NSUndoManagerDidOpenUndoGroupNotification upon creating the grouping. */ - (void) beginUndoGrouping { PrivateUndoGroup *parent; - if (_isUndoing == NO) + if (_isUndoing == NO && _group != nil) { [[NSNotificationCenter defaultCenter] postNotificationName: NSUndoManagerCheckpointNotification