]> git.lyx.org Git - lyx.git/commitdiff
Simplify and unify code for special handling in argument insets.
authorRichard Heck <rgheck@lyx.org>
Sat, 30 Jul 2016 03:38:51 +0000 (23:38 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 30 Jul 2016 03:38:51 +0000 (23:38 -0400)
src/insets/InsetArgument.cpp

index f271c148023cab7fd6aa7de650919da6c27de495..991b021b26454bc3399804b81eb48a3246d5676f 100644 (file)
@@ -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();
 }