From: Vincent van Ravesteijn Date: Thu, 26 Mar 2009 23:08:47 +0000 (+0000) Subject: Fix r28909: check for texted. X-Git-Tag: 2.0.0~7013 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d0b6aebd39bb0c5ec0de0ad760cf6637dcc5b498;p=lyx.git Fix r28909: check for texted. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28927 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index fbe30f11e6..f23704dbe4 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1464,12 +1464,13 @@ bool BufferView::dispatch(FuncRequest const & cmd) if (cmd.action == LFUN_SCREEN_DOWN && scrolled < height_) p = Point(width_, height_); Cursor old = cur; + bool const in_texted = cur.inTexted(); cur.reset(buffer_.inset()); updateMetrics(); buffer_.changed(); d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_); //FIXME: what to do with cur.x_target()? - bool const update = cur.bv().checkDepm(cur, old); + bool update = in_texted && cur.bv().checkDepm(cur, old); cur.finishUndo(); if (update) processUpdateFlags(Update::Force | Update::FitCursor);