]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNote.cpp
Prevent more local colors from leaking (#6626)
[features.git] / src / insets / InsetNote.cpp
index c9b0b8823a7f85d1209f59a95c7fac3551ac4e28..adacef3bae267066beec930dacb5f5b707ca6f65 100644 (file)
@@ -332,6 +332,10 @@ FontInfo InsetNote::getFont() const
                ColorCode c = lcolor.getFromLyXName("notefontcolor");
                if (c != Color_none)
                        font.setColor(c);
+               // This is the local color (not overridden by other documents)
+               ColorCode lc = lcolor.getFromLyXName("notefontcolor@" + buffer().fileName().absFileName());
+               if (lc != Color_none)
+                       font.setPaintColor(lc);
        }
        return font;
 }