* BufferView::update(): fitCursor() optimization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20560 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-28 07:32:19 +00:00
parent e19fba4f15
commit b64f836199

View File

@ -257,6 +257,11 @@ bool BufferView::update(Update::flags flags)
buffer_.changed();
if (fitCursor())
updateMetrics(false);
else
// The screen has already been updated thanks to the
// 'buffer_.changed()' call three line above. So no need
// to redraw again.
return false;
}
// tell the frontend to update the screen.