* InsetCitation:

- use valid citation commands only (bug 4876)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-05-20 07:22:55 +00:00
parent a2f6539aff
commit bcf3cbef4f

View 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);