mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
60d66f046c
commit
3e6c9c0812
@ -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.
|
||||
|
10
src/text3.C
10
src/text3.C
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user