]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.C
ws changes only
[lyx.git] / src / undo_funcs.C
index 2d8e529b2984f91bb037c4171b11ec75687287e3..4501d53b116a3e91cb064c639f9b5642393d1859 100644 (file)
@@ -9,15 +9,11 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "undo_funcs.h"
 #include "lyxtext.h"
 #include "BufferView.h"
 #include "buffer.h"
-#include "insets/inset.h"
+#include "insets/updatableinset.h"
 #include "debug.h"
 #include "support/LAssert.h"
 
@@ -193,13 +189,18 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
                        it->getLyXText(bv)->setCursorIntern(bv, before, 0);
                else
                        bv->text->setCursorIntern(bv, before, 0);
-       } else { // otherwise this is the first one and we start here
+       }
+// we are not ready for this we cannot set the cursor for a paragraph
+// which is not already in a row of LyXText!!!
+#if 0
+       else { // otherwise this is the first one and we start here
                Inset * it = undopar->inInset();
                if (it)
                        it->getLyXText(bv)->setCursorIntern(bv, undopar, 0);
                else
                        bv->text->setCursorIntern(bv, undopar, 0);
        }
+#endif
 
        Paragraph * endpar = 0;
        // calculate the endpar for redoing the paragraphs.