]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Paragraph::inInset() shall not be used if the owner inset was not initialized. Make...
[lyx.git] / src / LaTeXFeatures.cpp
index 581e9b4029992382bce8d47243e3fce7602a1871..cf85ec564880e4ee7a45761877088ec115d4e162 100644 (file)
@@ -471,7 +471,7 @@ char const * simplefeatures[] = {
        "endnotes",
        "ifthen",
        "amsthm",
-       "listings",
+       // listings is handled in BufferParams.cpp
        "bm",
        "pdfpages",
        "relsize",
@@ -602,8 +602,7 @@ string const LaTeXFeatures::getPackages() const
        // Some classes load natbib themselves, but still allow (or even require)
        // plain numeric citations (ReVTeX is such a case, see bug 5182).
        // This special case is indicated by the "natbib-internal" key.
-       if (mustProvide("natbib")
-           && !params_.getTextClass().provides("natbib-internal")) {
+       if (mustProvide("natbib") && !tclass.provides("natbib-internal")) {
                packages << "\\usepackage[";
                if (params_.citeEngine() == ENGINE_NATBIB_NUMERICAL)
                        packages << "numbers";