Fix r28909: check for texted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28927 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-03-26 23:08:47 +00:00
parent 1a74934610
commit d0b6aebd39

View 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);