diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 10afdf33fd..e2fd3f1658 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -480,7 +480,7 @@ string const LaTeXFeatures::getPackages() const << "]{graphicx}\n"; } // shadecolor for shaded - if (mustProvide("framed")) { + if (mustProvide("framed") && mustProvide("color")) { RGBColor c = RGBColor(lcolor.getX11Name(Color::shadedbg)); packages << "\\definecolor{shadecolor}{rgb}{" << c.r/255 << ',' << c.g/255 << ',' << c.b/255 << "}\n"; diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index 55fc6911d7..cff547b5b2 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -365,10 +365,8 @@ void InsetNote::validate(LaTeXFeatures & features) const features.require("color"); features.require("framed"); } - if (params_.type == InsetNoteParams::Framed) { - features.require("color"); + if (params_.type == InsetNoteParams::Framed) features.require("framed"); - } InsetText::validate(features); }