]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
Stupid bug fix.
[lyx.git] / src / insets / InsetCitation.cpp
index c41cd370eff2cfd9d69f2d53708e5d652bed8ef3..859ceba81f4e050b65cb2c9f4c3b78dd3888c0c4 100644 (file)
@@ -94,13 +94,16 @@ string asValidLatexCommand(string const & input, CiteEngine const engine)
        string output;
        switch (engine) {
                case ENGINE_BASIC:
-                       output = input;
+                       if (input == "nocite")
+                               output = input;
+                       else
+                               output = default_str;
                        break;
 
                case ENGINE_NATBIB_AUTHORYEAR:
                case ENGINE_NATBIB_NUMERICAL:
-                       if (input == "cite" || input == "citefield" ||
-                                                       input == "citetitle" || input == "cite*")
+                       if (input == "cite" || input == "citefield"
+                           || input == "citetitle" || input == "cite*")
                                output = default_str;
                        else if (prefixIs(input, "foot"))
                                output = input.substr(4);
@@ -427,7 +430,7 @@ void InsetCitation::updateLabels(ParIterator const &)
 }
 
 
-void InsetCitation::addToToc(ParConstIterator const & cpit) const
+void InsetCitation::addToToc(DocIterator const & cpit)
 {
        Toc & toc = buffer().tocBackend().toc("citation");
        toc.push_back(TocItem(cpit, 0, cache.screen_label));