* 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
This commit is contained in:
Jürgen Spitzmüller 2007-01-09 08:26:11 +00:00
parent f85f3c5307
commit 63183ee9da
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-01-09 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insetcite.C (getNatbibLabels): correct check for updating the
natbib labels cache (we didn't consider the buffer).
2006-12-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2006-12-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetcollapsable.C (hasFixedWidth): new virtual method, returns * insetcollapsable.C (hasFixedWidth): new virtual method, returns

View File

@ -86,7 +86,7 @@ string const getNatbibLabel(Buffer const & buffer,
} }
// build the keylist only if the bibfiles have been changed // 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, string> > InfoType; typedef vector<std::pair<string, string> > InfoType;
InfoType bibkeys; InfoType bibkeys;
buffer.fillWithBibKeys(bibkeys); buffer.fillWithBibKeys(bibkeys);

View File

@ -171,6 +171,9 @@ What's new
- On Mac OS X, make sure to view files with the same application as - On Mac OS X, make sure to view files with the same application as
the Finder uses. the Finder uses.
- The natbib labels weren't always displayed correctly when opening
a document. This is fixed.
* Build/installation: * Build/installation:
- Allow autoconf 2.60 and 2.61 for building. - Allow autoconf 2.60 and 2.61 for building.