* src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16609 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-01-08 17:38:39 +00:00
parent 23326f7770
commit ba57568a72

View File

@ -96,7 +96,7 @@ docstring const getNatbibLabel(Buffer const & buffer,
}
// build the keylist only if the bibfiles have been changed
if (cached_keys.empty() || bibfileStatus.empty() || changed) {
if (cached_keys[&buffer].empty() || bibfileStatus.empty() || changed) {
typedef vector<std::pair<string, docstring> > InfoType;
InfoType bibkeys;
buffer.fillWithBibKeys(bibkeys);