Remove color dependency of framed note, fix bug 3598

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18428 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-05-20 02:53:19 +00:00
parent 7932a418d1
commit e658f71f07
2 changed files with 2 additions and 4 deletions

View File

@ -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";

View File

@ -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);
}