]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
* do not lookup the same macro all the time
[lyx.git] / src / LaTeXFeatures.cpp
index 10afdf33fdc47555bde87773e74919e64efea872..e2fd3f1658af89b58a5c2dddb50ed5d35e6cd963 100644 (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";