From: Richard Heck Date: Tue, 3 Oct 2017 21:21:21 +0000 (-0400) Subject: Reset cursor before beginning reload sequence. X-Git-Tag: 2.3.0rc1~54 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=da7f5393585723cd07b6c7dc41e9e1574151e264;p=features.git Reset cursor before beginning reload sequence. (cherry picked from commit af381a2fb25df71b43668fa46ba9b6395f266751) --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index e48d6db1af..f936c33d63 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -3173,6 +3173,7 @@ static bool ensureBufferClean(Buffer * buffer) bool GuiView::reloadBuffer(Buffer & buf) { + currentBufferView()->cursor().reset(); Buffer::ReadStatus status = buf.reload(); return status == Buffer::ReadSuccess; }