]> git.lyx.org Git - features.git/commitdiff
* InsetCitation:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 20 May 2008 07:22:55 +0000 (07:22 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 20 May 2008 07:22:55 +0000 (07:22 +0000)
- use valid citation commands only (bug 4876)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24856 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCitation.cpp

index ea5700e55978c98d38bde0cdf3b8545bf81e0b79..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);