Simplify and unify code for special handling in argument insets.

This commit is contained in:
Richard Heck 2016-07-29 23:38:51 -04:00
parent 96a8156557
commit 76e6c77825

View File

@ -245,7 +245,7 @@ FontInfo InsetArgument::getFont() const
{ {
if (font_ != inherit_font) if (font_ != inherit_font)
return font_; return font_;
return getLayout().font(); return InsetCollapsable::getFont();
} }
@ -253,7 +253,7 @@ FontInfo InsetArgument::getLabelfont() const
{ {
if (labelfont_ != inherit_font) if (labelfont_ != inherit_font)
return labelfont_; return labelfont_;
return getLayout().labelfont(); return InsetCollapsable::getLabelfont();
} }