#include <algorithm>
-using lyx::pit_type;
+
+namespace lyx {
using std::advance;
using std::endl;
// fill in the real data to be saved
if (cell.inMathed()) {
// simply use the whole cell
- undo.array = asString(cell.cell());
+ undo.array = to_utf8(asString(cell.cell()));
} else {
// some more effort needed here as 'the whole cell' of the
// main LyXText _is_ the whole document.
// gained by storing just 'a few' paragraphs (most if not
// all math inset cells have just one paragraph!)
//lyxerr << "undo.array=" << undo.array <<endl;
- asArray(undo.array, dit.cell());
+ // FIXME UNICODE
+ asArray(from_utf8(undo.array), dit.cell());
} else {
// Some finer machinery is needed here.
LyXText * text = dit.text();
);
undo_finished = false;
}
+
+
+} // namespace lyx