]> git.lyx.org Git - features.git/commitdiff
Compil fix.
authorPavel Sanda <sanda@lyx.org>
Thu, 4 Sep 2008 19:54:32 +0000 (19:54 +0000)
committerPavel Sanda <sanda@lyx.org>
Thu, 4 Sep 2008 19:54:32 +0000 (19:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26300 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp

index 581e9b4029992382bce8d47243e3fce7602a1871..4b994e6befe29774167efe9e572a547bb49102bc 100644 (file)
@@ -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";