mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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)
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user