]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.C
more code in the menu backend == less code in the menu frontends; add support for...
[lyx.git] / src / undo_funcs.C
index 2d8e529b2984f91bb037c4171b11ec75687287e3..96d5497491b371cf036bd55a3747402be7032184 100644 (file)
@@ -9,10 +9,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "undo_funcs.h"
 #include "lyxtext.h"
 #include "BufferView.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.