]> git.lyx.org Git - lyx.git/blobdiff - src/insets/updatableinset.C
My patch from yesterday
[lyx.git] / src / insets / updatableinset.C
index b7c7eafee8936b0ad4427e5d8e52df4f2716df04..9ba5820d56e1badcabcb2d92f58469d99237b31a 100644 (file)
@@ -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<UpdatableInset *>(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<UpdatableInset *>(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;
        }
@@ -167,7 +164,7 @@ int UpdatableInset::getMaxWidth(BufferView * bv, UpdatableInset const *) const
                w = static_cast<UpdatableInset*>
                        (owner())->getMaxWidth(bv, this);
        } else {
-               w = bv->text->workWidth(*bv, const_cast<UpdatableInset *>(this));
+               w = bv->text->workWidth(const_cast<UpdatableInset *>(this));
        }
        if (w < 0) {
                return -1;
@@ -216,7 +213,7 @@ bool UpdatableInset::nextChange(BufferView * bv, lyx::pos_type &)
        return false;
 }
 
+
 bool UpdatableInset::searchForward(BufferView * bv, string const &,
                                   bool, bool)
 {