LaTeXFeatures.cpp: fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5294 also for trunk

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26600 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-09-28 12:14:15 +00:00
parent d30cc6cdd5
commit 7c8851a45b

View File

@ -577,7 +577,8 @@ string const LaTeXFeatures::getPackages() const
if (mustProvide("color") || mustProvide("xcolor")) {
string const package =
(mustProvide("xcolor") ? "xcolor" : "color");
if (params_.graphicsDriver == "default")
if (params_.graphicsDriver == "default"
|| params_.graphicsDriver == "none")
packages << "\\usepackage{" << package << "}\n";
else
packages << "\\usepackage["