void UpdatableInset::draw(BufferView *, LyXFont const &,
- int /* baseline */, float & x,
- bool/*cleared*/) const
+ int /* baseline */, float & x) const
{
x += float(scx);
// ATTENTION: don't do the following here!!!
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
scx += offset;
}
}
-// bv->updateInset(const_cast<UpdatableInset *>(this), false);
}
int const xx = strToInt(ev.argument);
scroll(ev.view(), xx);
}
- ev.view()->updateInset(this, false);
+ ev.view()->updateInset(this);
return DISPATCHED;
}
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;
return false;
}
-
+
bool UpdatableInset::searchForward(BufferView * bv, string const &,
bool, bool)
{