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? ;-) Actually, I'd just leave it as it is right now. The math panel is not meant to work outside mathed and currently pressing the 'up' button outside mathed produces a '^' which (a) indicates, that something happened at all, and (b) is a fairly close text-mode description of 'go up'. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)