]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
A better fix for bug 675:
[lyx.git] / src / undo.C
index 915e3e9a998e63e66db1a343c19b54ef0fb6692b..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"
@@ -169,9 +170,8 @@ bool textUndoOrRedo(BufferView & bv,
                // We stored the full cell here as there is not much to be
                // gained by storing just 'a few' paragraphs (most if not
                // all math inset cells have just one paragraph!)
-               //lyxerr << "undo.array=" << undo.array <<endl;
-               // FIXME UNICODE
-               asArray(from_utf8(undo.array), dit.cell());
+               // lyxerr << "undo.array=" << to_ascii(undo.array) <<endl;
+               asArray(undo.array, dit.cell());
        } else {
                // Some finer machinery is needed here.
                LyXText * text = dit.text();
@@ -196,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