From: Abdelrazak Younes Date: Tue, 21 Nov 2006 09:04:54 +0000 (+0000) Subject: Add some comments WRT to painting strategy. X-Git-Tag: 1.6.10~11804 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e17cb17ef90aaaf01385a01983dbdc65edac48f2;p=features.git Add some comments WRT to painting strategy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16003 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 1975bce2e9..582806ea8b 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1712,12 +1712,17 @@ void LyXFunc::dispatch(FuncRequest const & cmd) } if (lyx_view_ && view()->buffer()) { - // Redraw screen unless explicitly told otherwise. - // This also initializes the position cache for all insets - // in (at least partially) visible top-level paragraphs. - std::pair needSecondUpdate = view()->update(updateFlags); + // BufferView::update() updates the ViewMetricsInfo and + // also initializes the position cache for all insets in + // (at least partially) visible top-level paragraphs. + std::pair needSecondUpdate + = view()->update(updateFlags); + // Redraw screen unless explicitly told otherwise. if (needSecondUpdate.first) + // Buffer::changed() signals that a repaint is needed. + // The frontend (WorkArea) knows which area to repaint + // thanks to the ViewMetricsInfo updated above. view()->buffer()->changed(); lyx_view_->updateStatusBar();