mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Fixed stupid bug introduced in my last fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3262 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a17655b05b
commit
455a8f6ca2
@ -1,3 +1,8 @@
|
||||
2001-12-24 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* undo_funcs.C (textHandleUndo): fixed a stupid earlier wrong fix
|
||||
which then did not anymore update the main paragraphs on undo/redo!
|
||||
|
||||
2001-12-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* lyxfunc.C (getStatus): use func_status::toggle to simplify the
|
||||
|
@ -215,8 +215,9 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
||||
endpar = behind->next();
|
||||
|
||||
tmppar = bv->buffer()->getParFromID(undo->number_of_cursor_par);
|
||||
if (tmppar3) {
|
||||
UpdatableInset* it = static_cast<UpdatableInset*>(tmppar3->inInset());
|
||||
UpdatableInset* it = 0;
|
||||
if (tmppar3)
|
||||
it = static_cast<UpdatableInset*>(tmppar3->inInset());
|
||||
if (it) {
|
||||
it->getLyXText(bv)->redoParagraphs(bv,
|
||||
it->getLyXText(bv)->cursor,
|
||||
@ -245,7 +246,6 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
||||
}
|
||||
bv->text->setCursorIntern(bv, bv->text->cursor.par(),
|
||||
bv->text->cursor.pos());
|
||||
}
|
||||
} else {
|
||||
bv->text->redoParagraphs(bv, bv->text->cursor, endpar);
|
||||
if (tmppar) {
|
||||
|
Loading…
Reference in New Issue
Block a user