}
-void InsetCollapsable::draw(BufferView * bv, LyXFont const & f,
- int baseline, float & x, bool cleared) const
+void InsetCollapsable::draw(BufferView * bv, LyXFont const & f,
+ int baseline, float & x, bool cleared) const
{
if (nodraw())
return;
if (!owner())
x += static_cast<float>(scroll());
#endif
-
if (!cleared && (inset.need_update == InsetText::FULL ||
inset.need_update == InsetText::INIT ||
top_x != int(x) ||
bv->text->status = LyXText::CHANGED_IN_DRAW;
return;
#else
- int w = owner() ? width(bv, f) : pain.paperWidth();
+ int w = owner() ? width(bv, f) : pain.paperWidth();
int h = ascent(bv, f) + descent(bv, f);
int const tx = (needFullRow() && !owner()) ? 0 : int(x);
int const ty = max(0, baseline - ascent(bv, f));
bv->unlockInset(this);
return true;
}
- bool const ret = inset.UnlockInsetInInset(bv, in, lr);
- return ret;
+ return inset.UnlockInsetInInset(bv, in, lr);
}
return inset.nodraw();
}
-
int InsetCollapsable::scroll(bool recursive) const
{
int sx = UpdatableInset::scroll(false);