commit 080a4d84e295db1f2c2589af46fcfa981a716406
Author: Richard Heck <[email protected]>
Date: Tue Oct 14 15:41:42 2014 -0400
Fix bug #9296. The key may be multiple keys.
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index 9a93ed4..7012779 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -942,7 +942,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();