mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Revert part of the undo patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5611 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9d02921816
commit
de9a3c957d
@ -219,7 +219,11 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
|||||||
it->getLyXText(bv)->setCursorIntern(bv, before, 0);
|
it->getLyXText(bv)->setCursorIntern(bv, before, 0);
|
||||||
else
|
else
|
||||||
bv->text->setCursorIntern(bv, before, 0);
|
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 = tmppar3->inInset();
|
Inset * it = tmppar3->inInset();
|
||||||
if (it)
|
if (it)
|
||||||
it->getLyXText(bv)->setCursorIntern(bv, tmppar3, 0);
|
it->getLyXText(bv)->setCursorIntern(bv, tmppar3, 0);
|
||||||
@ -227,6 +231,7 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
|||||||
bv->text->setCursorIntern(bv, tmppar3, 0);
|
bv->text->setCursorIntern(bv, tmppar3, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Paragraph * endpar = 0;
|
Paragraph * endpar = 0;
|
||||||
// calculate the endpar for redoing the paragraphs.
|
// calculate the endpar for redoing the paragraphs.
|
||||||
|
Loading…
Reference in New Issue
Block a user