On Thu, May 28, 2009 at 11:28:51AM +0200, Jürgen Spitzmüller wrote:
> Enrico Forestieri wrote:
> 
> > If in the preferences file you manually insert the line
> > \bibtex_alternatives "mybibtex"
> > and then save the preferences from within LyX, this line is duplicated.
> > On next save, it is quadrupled, and so on. It seems that the
> > bibtex_alternatives vector gets doubled somewhere in the code, but I
> > don't know where this happens.
> 
> I'm hopelessly snowed with work. I might have a look eventually, if you 
> don't beat me to it.

The problem was that LyXRC::read() is expected to replace values,
while vector::push_back() simply adds them. I solved the bug by using
a set container, instead. This also allowed to simplify the code
in LyXRC::write().

-- 
Enrico

Reply via email to