OK, this doesn't work. The 'sp' variable is a local static of
InsetFormulaBase::localDispatch, so if you go to another formula it will
remember the 'sp' variable of the previous one. This causes funny stuff.
For example, if you deleted the previous forumula in the mean while, you
get a crash (verified). LyX 1.1.6fix2 has exactly these problems. Was
the code intentionally disabled due to this? (no comments, no way to
know)
I guess 'sp' (current space inset) should be made a member variable of
InsetFormulaBase, and should be set to NULL when the formula gets focus.
'sp' should also be set to NULL whenever the space inset it points to is
deleted (e.g., using mouse selection and menus), which currently it
isn't. Yikes. I hope there's some way to get an "I'm being removed"
notification from the space inset, or at least an "I'm changing"
notification from the formula.
I think I'll leave this to the pros after all.
Eran
Eran Tromer wrote:
>
> In current 1.2.0cvs it's no longer possible to increase the size of
> spaces in mathed using
> C-<space> <space> <space> ...
>
> <space> immediately after C-<space> is interpreted as usual, i.e., a
> mathcursor->pop() is executed.
>
> The attached patch seems to fix this.
>
> Regards,
> Eran Tromer
>
> ------------------------------------------------------------------------
> Name: patch.diff
> patch.diff Type: Plain Text (text/plain)
> Encoding: 7bit