mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Delay bibfileCache first update up until it is used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16606 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
10917a7b09
commit
2b378ca3fd
@ -1286,6 +1286,10 @@ vector<FileName> const & Buffer::getBibfilesCache() const
|
||||
if (tmp != this)
|
||||
return tmp->getBibfilesCache();
|
||||
|
||||
// We update the cache when first used instead of at loading time.
|
||||
if (bibfilesCache_.empty())
|
||||
const_cast<Buffer *>(this)->updateBibfilesCache();
|
||||
|
||||
return bibfilesCache_;
|
||||
}
|
||||
|
||||
|
@ -383,7 +383,7 @@ private:
|
||||
StableDocIterator anchor_;
|
||||
/// A cache for the bibfiles (including bibfiles of loaded child
|
||||
/// documents), needed for appropriate update of natbib labels.
|
||||
std::vector<support::FileName> bibfilesCache_;
|
||||
mutable std::vector<support::FileName> bibfilesCache_;
|
||||
|
||||
/// Container for all sort of Buffer dependant errors.
|
||||
std::map<std::string, ErrorList> errorLists_;
|
||||
|
Loading…
Reference in New Issue
Block a user