mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Simplify and unify code for special handling in argument insets.
This commit is contained in:
parent
96a8156557
commit
76e6c77825
@ -245,7 +245,7 @@ FontInfo InsetArgument::getFont() const
|
||||
{
|
||||
if (font_ != inherit_font)
|
||||
return font_;
|
||||
return getLayout().font();
|
||||
return InsetCollapsable::getFont();
|
||||
}
|
||||
|
||||
|
||||
@ -253,7 +253,7 @@ FontInfo InsetArgument::getLabelfont() const
|
||||
{
|
||||
if (labelfont_ != inherit_font)
|
||||
return labelfont_;
|
||||
return getLayout().labelfont();
|
||||
return InsetCollapsable::getLabelfont();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user