diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 546921421b..68ea69ac4b 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -152,7 +152,7 @@ Dimension InsetCollapsable::dimensionCollapsed() const bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const { autoOpen_ = mi.base.bv->cursor().isInside(this); - mi.base.textwidth -= (int) 1.5 * TEXT_TO_INSET_OFFSET; + mi.base.textwidth -= (int) (1.5 * TEXT_TO_INSET_OFFSET); if (status() == Inlined) { InsetText::metrics(mi, dim); @@ -178,8 +178,8 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const } dim.asc += TEXT_TO_INSET_OFFSET; dim.des += TEXT_TO_INSET_OFFSET; - dim.wid += (int) 1.5 * TEXT_TO_INSET_OFFSET; - mi.base.textwidth += (int) 1.5 * TEXT_TO_INSET_OFFSET; + dim.wid += (int) (1.5 * TEXT_TO_INSET_OFFSET); + mi.base.textwidth += (int) (1.5 * TEXT_TO_INSET_OFFSET); bool const changed = dim_ != dim; dim_ = dim; return changed;