From: Enrico Forestieri Date: Thu, 28 Oct 2010 12:32:32 +0000 (+0000) Subject: Fix bug #6589 (Crash when reverting to saved while cursor is in mathed) X-Git-Tag: 2.0.0~2213 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8590a51f9b4e6d35fdf3f6cf4765c06bca90be35;p=features.git Fix bug #6589 (Crash when reverting to saved while cursor is in mathed) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35880 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index b6480ffb11..ef79b02fe3 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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(); }