]> git.lyx.org Git - features.git/commitdiff
Fix drawing of multiple views of a same buffer in the *same window* (aka split-view).
authorAbdelrazak Younes <younes@lyx.org>
Thu, 21 Feb 2008 11:56:38 +0000 (11:56 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 21 Feb 2008 11:56:38 +0000 (11:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23087 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 6e48e42390232a6e9c8612c9b1acbae121534c69..17edb2f5cf890546ccde0f1305d7629fdba6139f 100644 (file)
@@ -310,7 +310,8 @@ void GuiWorkArea::redraw()
 
        // No need to do anything if this is the current view. The BufferView
        // 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.
                buffer_view_->updateMetrics();
                buffer_view_->cursor().fixIfBroken();