mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Add some comments WRT to painting strategy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16003 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7c1b006288
commit
e17cb17ef9
@ -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<bool, bool> 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<bool, bool> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user