]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
fix View Source for literate documents
[lyx.git] / src / LaTeXFeatures.cpp
index a8660d776a707ef6d4d9d5e7607befe91d810c79..02c47481950d592b91066b110a84932d39d1505f 100644 (file)
@@ -576,10 +576,11 @@ string const LaTeXFeatures::getPackages() const
        //
 
        // esint is preferred for esintoramsmath
-       if ((mustProvide("amsmath") &&
-            params_.use_amsmath != BufferParams::package_off) ||
-           (mustProvide("esintoramsmath") &&
-            params_.use_esint == BufferParams::package_off)) {
+       if ((mustProvide("amsmath")
+            && params_.use_amsmath != BufferParams::package_off)
+           || (mustProvide("esintoramsmath")
+               && params_.use_esint == BufferParams::package_off
+               && params_.use_amsmath != BufferParams::package_off)) {
                packages << "\\usepackage{amsmath}\n";
        } else if (mustProvide("amsbsy")) {
                // amsbsy is already provided by amsmath