X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.cpp;h=adacef3bae267066beec930dacb5f5b707ca6f65;hb=6775d7c3a2bccdc064dc0fb37564b8941d956541;hp=c9b0b8823a7f85d1209f59a95c7fac3551ac4e28;hpb=024980cf437efc1c25f5d5724c6752ad68989ed0;p=features.git diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index c9b0b8823a..adacef3bae 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -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; }