]> git.lyx.org Git - features.git/blobdiff - src/Undo.cpp
move updateLables to buffer
[features.git] / src / Undo.cpp
index 3b4bdf2f8872f076ae0f54d9cc6f69df6dfc2be9..2acc1a36ba191419d80ad3a1bd236a934f78bdfd 100644 (file)
@@ -4,10 +4,10 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Asger Alstrup
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author John Levon
- * \author André Pönitz
- * \author Jürgen Vigna
+ * \author André Pönitz
+ * \author Jürgen Vigna
  * \author Abdelrazak Younes
  *
  * Full author contact details are available in file CREDITS.
@@ -285,7 +285,10 @@ void Undo::Private::doRecordUndo(UndoKind kind,
            && stack.top().end == end)
                return;
 
-       LYXERR(Debug::UNDO, "Create undo element of group " << group_id);
+       if (isFullBuffer)
+               LYXERR(Debug::UNDO, "Create full buffer undo element of group " << group_id);
+       else
+               LYXERR(Debug::UNDO, "Create undo element of group " << group_id);
        // create the position information of the Undo entry
        UndoElement undo(kind, cur, cell, from, end, 0, 0, 
                         buffer_.params(), isFullBuffer, group_id);
@@ -424,7 +427,7 @@ bool Undo::Private::textUndoOrRedo(DocIterator & cur, bool isUndoOperation)
                doTextUndoOrRedo(cur, stack, otherstack);
 
        // Addapt the new material to current buffer.
-       updateLabels(buffer_);
+       buffer_.updateLabels();
        return true;
 }