X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Fupdatableinset.C;h=9ba5820d56e1badcabcb2d92f58469d99237b31a;hb=26f1a5bfcae4b7fd7b946a1884c396d842b24925;hp=783f3c5dd03655129bb908f3330c197761fdbb7d;hpb=064714a10232d49de3d1dd46f6903b6ab5d27c48;p=lyx.git diff --git a/src/insets/updatableinset.C b/src/insets/updatableinset.C index 783f3c5dd0..9ba5820d56 100644 --- a/src/insets/updatableinset.C +++ b/src/insets/updatableinset.C @@ -110,8 +110,6 @@ void UpdatableInset::scroll(BufferView * bv, float s) const if ((tmp_top_x + scx + width(bv, font)) < (workW / 2)) { scx += (workW / 2) - (tmp_top_x + scx + width(bv, font)); } - - // bv->updateInset(const_cast(this), false); } void UpdatableInset::scroll(BufferView * bv, int offset) const @@ -134,7 +132,6 @@ void UpdatableInset::scroll(BufferView * bv, int offset) const scx += offset; } } -// bv->updateInset(const_cast(this), false); } @@ -152,7 +149,7 @@ Inset::RESULT UpdatableInset::localDispatch(FuncRequest const & ev) int const xx = strToInt(ev.argument); scroll(ev.view(), xx); } - ev.view()->updateInset(this, false); + ev.view()->updateInset(this); return DISPATCHED; }