}
-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;
UpdatableInset::draw(bv, f, baseline, x, cleared);
#else
if (!owner())
- x += (float)scroll();
+ x += static_cast<float>(scroll());
#endif
if (!cleared && (inset.need_update == InsetText::FULL ||
inset.need_update == InsetText::INIT ||
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));
-
+
if ((ty + h) > pain.paperHeight())
h = pain.paperHeight();
if ((top_x + w) > pain.paperWidth())
} else if (!collapsed) {
if (!bv->lockInset(this))
return;
- inset.Edit(bv, xp, yp+(top_baseline - inset.y()), button);
+ inset.Edit(bv, xp, yp + (top_baseline - inset.y()), button);
}
}
bv->unlockInset(this);
return true;
}
- bool ret = inset.UnlockInsetInInset(bv, in, lr);
- return ret;
+ return inset.UnlockInsetInInset(bv, in, lr);
}