]> git.lyx.org Git - features.git/commitdiff
Fix the alias detection
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 3 Jan 2017 14:05:55 +0000 (15:05 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 3 Jan 2017 14:05:55 +0000 (15:05 +0100)
src/BufferParams.cpp

index 5afb79ccd1f2db76fd25d50e49903bda5ae5c3fc..5c4524b0d481b7ccd79ce4d0252b31f0df33fe11 100644 (file)
@@ -3253,6 +3253,11 @@ bool const & BufferParams::fullAuthorList() const
 
 string BufferParams::getCiteAlias(string const & s) const
 {
+       vector<string> commands =
+               documentClass().citeCommands(citeEngineType());
+       // If it is a real command, don't treat it as an alias
+       if (find(commands.begin(), commands.end(), s) != commands.end())
+               return string();
        map<string,string> aliases = documentClass().citeCommandAliases();
        if (aliases.find(s) != aliases.end())
                return aliases[s];