X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fundo_funcs.C;h=96d5497491b371cf036bd55a3747402be7032184;hb=5d3718cad2a2ef6a4d6a495054ab0705ba27b6b5;hp=2d8e529b2984f91bb037c4171b11ec75687287e3;hpb=f7d3fe8836869e70fc01bcf85edd7923027a01a5;p=lyx.git diff --git a/src/undo_funcs.C b/src/undo_funcs.C index 2d8e529b29..96d5497491 100644 --- a/src/undo_funcs.C +++ b/src/undo_funcs.C @@ -9,10 +9,6 @@ #include -#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.