mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
7932a418d1
commit
e658f71f07
@ -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";
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user