Fix bug #9296. The key may be multiple keys.

(cherry picked from commit 080a4d84e295db1f2c2589af46fcfa981a716406)
This commit is contained in:
Richard Heck 2014-10-14 15:41:42 -04:00
parent a0e0e3c170
commit bdb6abf9b7
2 changed files with 6 additions and 1 deletions

View File

@ -929,7 +929,9 @@ docstring const BiblioInfo::getLabel(vector<docstring> keys,
bool BiblioInfo::isBibtex(docstring const & key) const
{
BiblioInfo::const_iterator it = find(key);
docstring key1;
split(key, key1, ',');
BiblioInfo::const_iterator it = find(key1);
if (it == end())
return false;
return it->second.isBibTeX();

View File

@ -62,6 +62,9 @@ What's new
- Fix export of xfig external insets (bug 9244).
- Fix incorrect output of ampersands when multiple keys are given for a
citation (bug 9296).
* LYX2LYX