Opened 21 years ago

Closed 21 years ago

#907 closed defect (fixed)

bib-files are sorted in lyx-xforms 1.3.0 and later

Reported by: chr Owned by: Lars Gullik Bjønnes
Priority: high Milestone:
Component: general Version: unspecified
Severity: normal Keywords:
Cc: lasgouttes@…, leeming@…

Description

If you insert a bibliograpy reference using for Lyx 1.3.0 Xforms,
and specify that you want to use these .bib-files:

B, A

then when you close the dialog and open it again, the order has changed to:

A, B

which is very annoying if you have your string macros defined in B.bib.
This problem occurs in xforms versions of lyx, 1.2 - 1.4cvs

JMarc: I guess it is as simple as using a vector<string> instead of a
set<string>. We've had a lot of problems with people who want to
`optimize' things this way.

Change History (3)

comment:1 by levon, 21 years ago

Cc: lasgouttes@… leeming@… added

comment:2 by lasgouttes, 21 years ago

OK, the problem is the function unique_and_no_extensions
in FormBibTex.C, which calls lyx::eliminate_duplicates,
which in turn sorts the list in its quest to
remove duplicates. Angus, since this is you code, I propose
that you do one of two things:

1/ get rid of this code. I think this is a case of trying to be

too clever (or did someone ask for it?)

2/ fix it

comment:3 by lasgouttes, 21 years ago

Resolution: fixed
Status: newclosed

Fixed now in trunk and branch (thanks to the patch from
Ling Li).

Note that eliminate_duplicates is also used in tex_helpers.C,
but I hope it does not break anything.

Note: See TracTickets for help on using tickets.