Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Andre Poenitz
On Wed, Apr 10, 2002 at 07:16:15PM +0300, Martin Vermeer wrote: > > Actually, I'd just leave it as it is right now. > > OK... meaning: with the comment-out patch applied? Yes. > > The math panel is not meant to work outside mathed and currently > > pressing the 'up' button outside mathed produ

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Martin Vermeer
On Wed, Apr 10, 2002 at 06:00:11PM +0200, Andre Poenitz wrote: > On Wed, Apr 10, 2002 at 06:20:21PM +0300, Martin Vermeer wrote: > > > > virtual bool isInsideMathed() const { return (mathcursor != 0); } > > > > ... would that work? > > Yes. Thi would work, too. > > > BTW why static? >

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Andre Poenitz
On Wed, Apr 10, 2002 at 06:20:21PM +0300, Martin Vermeer wrote: > > virtual bool isInsideMathed() const { return (mathcursor != 0); } > > ... would that work? Yes. Thi would work, too. > BTW why static? Because it is independent of the concrete (LyX-) math inset... BTW why virtual? ;-

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Martin Vermeer
On Wed, Apr 10, 2002 at 04:55:06PM +0200, Andre Poenitz wrote: > On Wed, Apr 10, 2002 at 05:52:03PM +0300, Martin Vermeer wrote: > > A proper fix would mean executing these statements only if not already > > in mathed mode. But how to test for that? > > Check for mathcursor != 0, but that's a ha

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Andre Poenitz
On Wed, Apr 10, 2002 at 05:52:03PM +0300, Martin Vermeer wrote: > A proper fix would mean executing these statements only if not already > in mathed mode. But how to test for that? Check for mathcursor != 0, but that's a hack. Maybe this should be wrapped in some static function of InsetFormulaBa

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Martin Vermeer
On Wed, Apr 10, 2002 at 04:46:07PM +0200, Andre Poenitz wrote: > > On Wed, Apr 10, 2002 at 05:38:10PM +0300, Martin Vermeer wrote: > > case MM_SUPER: > > - lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); > > + //lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); > > lv_

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Andre Poenitz
On Wed, Apr 10, 2002 at 05:38:10PM +0300, Martin Vermeer wrote: > case MM_SUPER: > - lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); > + //lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE); > lv_->getLyXFunc()->dispatch(LFUN_SUPERSCRIPT); > break; >

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Martin Vermeer
On Wed, Apr 10, 2002 at 11:48:38AM +0200, Helge Hafting wrote: > Math oddity 1: > Typing 5^2 of 5_2 in math mode gives the expected result as always. > The new improved math panel offers another way of creating > exponents and subscripts, but with a small difference: > 5^2 using the math panel i

Re: pre3 - some math problems and a patch for one of them.

2002-04-10 Thread Andre Poenitz
On Wed, Apr 10, 2002 at 11:48:38AM +0200, Helge Hafting wrote: > Math oddity 3: > lyx math supports \gvertneqq. Strage enough I fixed this some time ago already in my local tree, but the change obviouly got lost before commiting somehow. Fixed now. I'll have a look at the others. Andre' -- T