Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
Herbert Voss <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> John Levon <[EMAIL PROTECTED]> writes: >> | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes >> wrote: >> anyway... imagine what happens here if data does not contain a '=' or if data is empty. >>

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Herbert Voss
Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > >>>anyway... imagine what happens here if data does not contain a '=' or >>>if data is empty. >>> >>>biblio.C: 356 >>>data = data.substr(data.find('='

Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > >> anyway... imagine what happens here if data does not contain a '=' or >> if data is empty. >> >> biblio.C: 356 >> data = data.substr(data.find('='), data.length() - 1); > | I've nev

Re: [PATCH] Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 5:42 pm, Herbert Voss wrote: > the following patch fixes the crash when using lyxlayout "bibliography" > but scanning for a bibtex-entry. > > Herbert Super. I fix the crash, you remove the need to check parseBibTeX in the first place. I'll apply it. Angus

[PATCH] Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Herbert Voss
the following patch fixes the crash when using lyxlayout "bibliography" but scanning for a bibtex-entry. Herbert -- http://www.lyx.org/help/ Index: src/frontends/controllers/ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-deve

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 11:05 am, Abdelrazak Younes wrote: > So here is the backtrace of the crash obtained with the attached file when you > 1) click on the Citation reference 'CATNET' > 2) click on 'GPS-GLONASS_RTK' inside the Citation Reference dialog > > Regards, > Abdel. Thanks, Abdel. No

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread John Levon
On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > anyway... imagine what happens here if data does not contain a '=' or > if data is empty. > > biblio.C: 356 > data = data.substr(data.find('='), data.length() - 1); I've never understood why the STL can't handle this, it cau

Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | Hi, > | In http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg33826.html Jean-Marc | Lasgouttes said : >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | Lars> Seems that parseBibTeX is using string::replace wrong. > | Except

biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Abdelrazak Younes
Hi, In http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg33826.html Jean-Marc Lasgouttes said : > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Seems that parseBibTeX is using string::replace wrong. Except that it does not use string::replace at all... It would be n