]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetArgument.cpp
Fix display of colors in labels of arguments.
[features.git] / src / insets / InsetArgument.cpp
index da807d201a40af30e34192970e0c9c2c1c87be24..f271c148023cab7fd6aa7de650919da6c27de495 100644 (file)
@@ -257,6 +257,13 @@ FontInfo InsetArgument::getLabelfont() const
 }
 
 
+ColorCode InsetArgument::labelColor() const {
+       if (labelfont_.color() != Color_inherit)
+               return labelfont_.color();
+       return InsetCollapsable::labelColor();
+}
+
+
 InsetLayout::InsetDecoration InsetArgument::decoration() const
 {
        InsetLayout::InsetDecoration dec = getLayout().decoration();