]> git.lyx.org Git - features.git/commitdiff
Fix bug #6589 (Crash when reverting to saved while cursor is in mathed)
authorEnrico Forestieri <forenr@lyx.org>
Thu, 28 Oct 2010 12:32:32 +0000 (12:32 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 28 Oct 2010 12:32:32 +0000 (12:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35880 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index b6480ffb11ede6d94c6bb6322d68e8a2952835db..ef79b02fe3e1c7b0f76ef3e8b53cbf8866bbe2af 100644 (file)
@@ -443,6 +443,7 @@ void GuiWorkArea::redraw(bool update_metrics)
        if (update_metrics || lyx_view_ != guiApp->currentView()
                || lyx_view_->currentWorkArea() != this) {
                // FIXME: it would be nice to optimize for the off-screen case.
+               buffer_view_->cursor().fixIfBroken();
                buffer_view_->updateMetrics();
                buffer_view_->cursor().fixIfBroken();
        }