mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Don't sort the bibfiles cache.
This causes problems with biblatex. Instead, we sort the old and
new lists and then compare them.
(cherry picked from commit 6b095e2b71
)
This commit is contained in:
parent
13354c4a53
commit
e7387fd348
@ -4789,9 +4789,13 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// if the bibfiles changed, the cache of bibinfo is invalid
|
// if the bibfiles changed, the cache of bibinfo is invalid
|
||||||
sort(d->bibfiles_cache_.begin(), d->bibfiles_cache_.end());
|
FileNamePairList new_bibfiles = d->bibfiles_cache_;
|
||||||
// the old one should already be sorted
|
// this is a trick to determine whether the two vectors have
|
||||||
if (old_bibfiles != d->bibfiles_cache_) {
|
// the same elements.
|
||||||
|
sort(new_bibfiles.begin(), new_bibfiles.end());
|
||||||
|
sort(old_bibfiles.begin(), old_bibfiles.end());
|
||||||
|
if (old_bibfiles != new_bibfiles) {
|
||||||
|
LYXERR(Debug::FILES, "Reloading bibinfo cache.");
|
||||||
invalidateBibinfoCache();
|
invalidateBibinfoCache();
|
||||||
reloadBibInfoCache();
|
reloadBibInfoCache();
|
||||||
// We relied upon the bibinfo cache when recalculating labels. But that
|
// We relied upon the bibinfo cache when recalculating labels. But that
|
||||||
@ -4808,8 +4812,11 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
|
|||||||
// updateMacros();
|
// updateMacros();
|
||||||
setChangesPresent(false);
|
setChangesPresent(false);
|
||||||
updateBuffer(parit, utype);
|
updateBuffer(parit, utype);
|
||||||
|
// this will already have been done by reloadBibInfoCache();
|
||||||
|
// d->bibinfo_cache_valid_ = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
LYXERR(Debug::FILES, "Bibfiles unchanged.");
|
||||||
// this is also set to true on the other path, by reloadBibInfoCache.
|
// this is also set to true on the other path, by reloadBibInfoCache.
|
||||||
d->bibinfo_cache_valid_ = true;
|
d->bibinfo_cache_valid_ = true;
|
||||||
}
|
}
|
||||||
|
@ -143,6 +143,9 @@ What's new
|
|||||||
|
|
||||||
- Recompile grandchildren when they have updated (bug 11112).
|
- Recompile grandchildren when they have updated (bug 11112).
|
||||||
|
|
||||||
|
- Output list of bibliography files in the order given in the dialog, rather
|
||||||
|
than sorted.
|
||||||
|
|
||||||
|
|
||||||
* LYX2LYX
|
* LYX2LYX
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user