fix bug 584 (r=lars)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5559 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-10-30 21:02:40 +00:00
parent 60d66f046c
commit 3e6c9c0812
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-10-30 John Levon <levon@movementarian.org>
* text3.C: make start appendix undoable
2002-10-24 Dekel Tsur <dekelts@tau.ac.il>
* lyxlength.C (inPixels): Fix returned value.

View File

@ -383,9 +383,15 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
// ensure that we have only one start_of_appendix in this document
Paragraph * tmp = ownerParagraph();
for (; tmp; tmp = tmp->next())
tmp->params().startOfAppendix(false);
for (; tmp; tmp = tmp->next()) {
if (tmp->params().startOfAppendix()) {
setUndo(bv, Undo::EDIT, tmp, tmp->next());
tmp->params().startOfAppendix(false);
break;
}
}
setUndo(bv, Undo::EDIT, par, par->next());
par->params().startOfAppendix(start);
// we can set the refreshing parameters now