]> git.lyx.org Git - features.git/commitdiff
* src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache.
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 8 Jan 2007 17:38:39 +0000 (17:38 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 8 Jan 2007 17:38:39 +0000 (17:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16609 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetcite.C

index 103e44160fef0a4d0d8e28a7c69339e16e24da76..a8bf9a068e5a87daedc172ce1e9636476a567b06 100644 (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);