From 63183ee9dab95a39a97efaa7967ea0abc65a95cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 9 Jan 2007 08:26:11 +0000 Subject: [PATCH] * src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16625 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetcite.C | 2 +- status.14x | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index d7e6c85af7..61e0254c5b 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2007-01-09 Jürgen Spitzmüller + + * insetcite.C (getNatbibLabels): correct check for updating the + natbib labels cache (we didn't consider the buffer). + 2006-12-29 Jean-Marc Lasgouttes * insetcollapsable.C (hasFixedWidth): new virtual method, returns diff --git a/src/insets/insetcite.C b/src/insets/insetcite.C index 373884f2d0..a9536cda90 100644 --- a/src/insets/insetcite.C +++ b/src/insets/insetcite.C @@ -86,7 +86,7 @@ string 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 > InfoType; InfoType bibkeys; buffer.fillWithBibKeys(bibkeys); diff --git a/status.14x b/status.14x index 0d7b519922..a44211e0fa 100644 --- a/status.14x +++ b/status.14x @@ -171,6 +171,9 @@ What's new - On Mac OS X, make sure to view files with the same application as the Finder uses. +- The natbib labels weren't always displayed correctly when opening + a document. This is fixed. + * Build/installation: - Allow autoconf 2.60 and 2.61 for building.