Re: math-mode feature or bug?

2000-09-19 Thread Andre Poenitz
| imacro-SetName(0); I really wonder why gcc accepts that. 0 is a valid "char const *" and std::string has a constructor taking such a pointer. So 0 is valid argument here. Might be a good idea to have a debug version of our own string implementation with a constructor taking an int

Re: math-mode feature or bug?

2000-09-19 Thread Andre Poenitz
> | imacro->SetName(0); > > I really wonder why gcc accepts that. 0 is a valid "char const *" and std::string has a constructor taking such a pointer. So 0 is valid argument here. Might be a good idea to have a debug version of our own string implementation with a constructor taking an

math-mode feature or bug?

2000-09-18 Thread Marko Vendelin
Hi! I would like to report the following bug in the mathmode: 1. create a new document (File/New) 2. open math-mode by clicking on the toolbar or by selecting Math/Math Mode in menu 3. type "\alpha " and enjoy LyX dumping a core. Marko PS: I hope it is not only in my build (Gnome

Re: math-mode feature or bug?

2000-09-18 Thread Garst R. Reese
Marko Vendelin wrote: Hi! I would like to report the following bug in the mathmode: 1. create a new document (File/New) 2. open math-mode by clicking on the toolbar or by selecting Math/Math Mode in menu 3. type "\alpha " and enjoy LyX dumping a core. Marko PS: I hope it is

Re: math-mode feature or bug?

2000-09-18 Thread Lior Silberman
On Mon, 18 Sep 2000, Marko Vendelin wrote: Hi! I would like to report the following bug in the mathmode: 1. create a new document (File/New) 2. open math-mode by clicking on the toolbar or by selecting Math/Math Mode in menu 3. type "\alpha " and enjoy LyX dumping a core. Marko

Re: math-mode feature or bug?

2000-09-18 Thread Lior Silberman
On Mon, 18 Sep 2000, Lior Silberman wrote: On Mon, 18 Sep 2000, Marko Vendelin wrote: Hi! I would like to report the following bug in the mathmode: 1. create a new document (File/New) 2. open math-mode by clicking on the toolbar or by selecting Math/Math Mode in menu

Re: math-mode feature or bug?

2000-09-18 Thread Lars Gullik Bjønnes
Lior Silberman [EMAIL PROTECTED] writes: | This also happens in xforms. The culprit appears to be the following line | (line 787 of mathed/math_cursor.C): | | imacro-SetName(0); I really wonder why gcc accepts that. | which is: | | void MathedInset::SetName(string const n) { name = n;

Re: math-mode feature or bug?

2000-09-18 Thread Lars Gullik Bjønnes
Lior Silberman [EMAIL PROTECTED] writes: | I meant to ask whether some version of imacro-SetName(emptystring); | is the correct syntax. Anyway: the following implements the first | option. I already did it with the last option. (+ another memory leak fix) Lgb

math-mode feature or bug?

2000-09-18 Thread Marko Vendelin
Hi! I would like to report the following bug in the mathmode: 1. create a new document (File/New) 2. open math-mode by clicking on the toolbar or by selecting Math/Math Mode in menu 3. type "\alpha " and enjoy LyX dumping a core. Marko PS: I hope it is not only in my build (Gnome

Re: math-mode feature or bug?

2000-09-18 Thread Garst R. Reese
Marko Vendelin wrote: > > Hi! > > I would like to report the following bug in the mathmode: > > 1. create a new document (File/New) > 2. open math-mode by clicking on the toolbar or by selecting Math/Math >Mode in menu > 3. type "\alpha " and enjoy LyX dumping a core. > > Marko > > PS: I

Re: math-mode feature or bug?

2000-09-18 Thread Lior Silberman
On Mon, 18 Sep 2000, Marko Vendelin wrote: > > Hi! > > I would like to report the following bug in the mathmode: > > 1. create a new document (File/New) > 2. open math-mode by clicking on the toolbar or by selecting Math/Math >Mode in menu > 3. type "\alpha " and enjoy LyX dumping a core.

Re: math-mode feature or bug?

2000-09-18 Thread Lior Silberman
On Mon, 18 Sep 2000, Lior Silberman wrote: > On Mon, 18 Sep 2000, Marko Vendelin wrote: > > > > > Hi! > > > > I would like to report the following bug in the mathmode: > > > > 1. create a new document (File/New) > > 2. open math-mode by clicking on the toolbar or by selecting Math/Math > >

Re: math-mode feature or bug?

2000-09-18 Thread Lars Gullik Bjønnes
Lior Silberman <[EMAIL PROTECTED]> writes: | This also happens in xforms. The culprit appears to be the following line | (line 787 of mathed/math_cursor.C): | | imacro->SetName(0); I really wonder why gcc accepts that. | which is: | | void MathedInset::SetName(string const & n) { name

Re: math-mode feature or bug?

2000-09-18 Thread Lars Gullik Bjønnes
Lior Silberman <[EMAIL PROTECTED]> writes: | I meant to ask whether some version of imacro->SetName(emptystring); | is the correct syntax. Anyway: the following implements the first | option. I already did it with the last option. (+ another memory leak fix) Lgb