]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Fix bug #11716
[lyx.git] / src / LaTeXFeatures.cpp
index 8ef793cd873cacac5fbc5bce32e268eb647c47fc..c1e259748b974dc3258fd4155252887d5eec81e1 100644 (file)
@@ -1307,7 +1307,11 @@ string const LaTeXFeatures::getPackages() const
        // than those above.
 
        if (mustProvide("changebar") && !mustProvide("ct-dvipost")) {
-               packages << "\\usepackage{changebar}\n";
+               packages << "\\usepackage";
+               if (runparams_.flavor == OutputParams::LATEX
+                   || runparams_.flavor == OutputParams::DVILUATEX)
+                       packages << "[dvips]";
+               packages << "{changebar}\n";
        }
 
        if (mustProvide("footnote")) {