// now, because Inset::getLayout() will return a default-constructed
// InsetLayout, and that e.g. sets the foreground color to red. So we
// need to do some work to make that possible.
- Inset const * inset = pars_[pit].inInset();
- InsetCollapsable const * icp = inset? inset->asInsetCollapsable() : 0;
+ InsetCollapsable const * icp = pars_[pit].inInset().asInsetCollapsable();
if (!icp)
return lf;
FontInfo icf = icp->getLayout().font();
if (layout.labelfont.family() == INHERIT_FAMILY)
lf.setFamily(buffer.params().getFont().fontInfo().family());
// FIXME As above....
- Inset const * inset = par.inInset();
- InsetCollapsable const * icp = inset? inset->asInsetCollapsable() : 0;
+ InsetCollapsable const * icp = par.inInset().asInsetCollapsable();
if (!icp)
return lf;
FontInfo icf = icp->getLayout().labelfont();