mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Fix the alias detection
This commit is contained in:
parent
958f6193ed
commit
c88259453c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user