Fix drawing of multiple views of a same buffer in the *same window* (aka split-view).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23087 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-21 11:56:38 +00:00
parent 95b9cbb4c4
commit c607940f5b

View File

@ -310,7 +310,8 @@ void GuiWorkArea::redraw()
// No need to do anything if this is the current view. The BufferView // No need to do anything if this is the current view. The BufferView
// metrics are already up to date. // metrics are already up to date.
if (lyx_view_ != guiApp->currentView()) { if (lyx_view_ != guiApp->currentView()
|| lyx_view_->currentWorkArea() != this) {
// FIXME: it would be nice to optimize for the off-screen case. // FIXME: it would be nice to optimize for the off-screen case.
buffer_view_->updateMetrics(); buffer_view_->updateMetrics();
buffer_view_->cursor().fixIfBroken(); buffer_view_->cursor().fixIfBroken();