Abdelrazak Younes wrote: > Could you test the attached patch nevertheless? Or Georg maybe?
It fails whenever different documents use different bib files of the same name (without absolute path). Consider the following case: - I have a file one.lyx in directory /myfiles/one/ that includes a bibfile refs.bib, which is also in that directory (and hence inserted without path). - In directory /myfiles/two/, I have another file two.lyx, that also includes a (different) file refs.lyx, which is either included in /myfiles/two/ or situated in the TEXMF tree, so that it also is inserted without path. When I open one.lyx and then two.lyx, not only the labels in two.lyx are broken, but also the entries in the citation dialog are wrong (i.e. the ones from /myfiles/one/refs.bib). Since it makes sense to have bib files without path, I think that the scanning has to be buffer-dependend. Another case where it breaks is when you copy the contents of a.lyx to an empty document which is not saved yet (or saved elsewhere). Jürgen