Appendix redrawing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-13 21:13:17 +00:00
parent 2431a4732a
commit 1d94e70166
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-03-13 John Levon <levon@movementarian.org>
* text3.C: fix appendix redrawing
2003-03-13 John Levon <levon@movementarian.org>
* text.C (setHeightOfRow):

View File

@ -419,6 +419,8 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
if (tmp->params().startOfAppendix()) {
setUndo(bv, Undo::EDIT, tmp, tmp->next());
tmp->params().startOfAppendix(false);
int tmpy;
setHeightOfRow(bv, getRow(tmp, 0, tmpy));
break;
}
}
@ -428,9 +430,10 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
// we can set the refreshing parameters now
status(cmd.view(), LyXText::NEED_MORE_REFRESH);
refresh_y = 0;
refresh_row = 0; // not needed for full update
updateCounters(cmd.view());
redoHeightOfParagraph(bv, cursor);
refresh_y = 0;
refresh_row = 0;
setCursor(cmd.view(), cursor.par(), cursor.pos());
update(bv);
break;