]> git.lyx.org Git - lyx.git/commitdiff
Fix r28909: check for texted.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 26 Mar 2009 23:08:47 +0000 (23:08 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 26 Mar 2009 23:08:47 +0000 (23:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28927 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index fbe30f11e6c83d91a597ad055d5bca9da9b0984d..f23704dbe459f94d39c2d728606a225c532dc4bb 100644 (file)
@@ -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);