]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
A better fix for bug 675:
[lyx.git] / src / undo.C
index 93d5ea5f63ff28e739d338dc52a7ebe0dc340a1c..33b97827325f006009e10dbcc3ef59165aa0c583 100644 (file)
@@ -17,6 +17,7 @@
 #include "undo.h"
 
 #include "buffer.h"
+#include "buffer_funcs.h"
 #include "cursor.h"
 #include "debug.h"
 #include "BufferView.h"
@@ -195,6 +196,7 @@ bool textUndoOrRedo(BufferView & bv,
                for (; pit != end; ++pit)
                        pit->setInsetOwner(dit.realInset());
                plist.insert(first, undo.pars.begin(), undo.pars.end());
+               updateLabels(*buf);
        }
 
        // Set cursor