> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> This patch fixes the following crash recipe:
Jean-Marc> How to reproduce: - Open a (new) LyX document - Insert ->
Jean-Marc> Math -> Inline Formula - Toggle emphasis twice - Undo
Jean-Marc> The problem was that undo
This patch fixes the following crash recipe:
How to reproduce:
- Open a (new) LyX document
- Insert -> Math -> Inline Formula
- Toggle emphasis twice
- Undo
The problem was that undo was called with the cursor at the wrong level.
Testing welcome. I will commit tomorrow.
JMarc
Index: src/mathe
On 02-Aug-2001 Andre Poenitz wrote:
> Yes. It would be nice for drawing and the like. The problem is editing. I
> would need some way to "merge" neighboring insets with similar
> properties...
And where is the "characters" hold? Ahh no I think I understand from your
problem yesterday. Well I wo
On 02-Aug-2001 Andre Poenitz wrote:
> So what should I do if I have an \mathwhatever _in_ an \mathbf inset
> (or is this not possible at all?) and toggle bold. I.e:
>
> \mathbf{sss\mathwhatever{aaa|aaa}sss}(| is the cursor)
[snip]
Hmm that's the problem of having font changes as insets.
> Well Andre what IS \mathbf for you? Is it an inset on it's own or some
> property you set?
Currently it is a property that only "characters" have
> IMO as mathed is made this should be an inset of it's
> own which can hold other insets isn't this?
This would fit in the "everything is an inset
On 02-Aug-2001 Jean-Marc Lasgouttes wrote:
> I think your should model that by what happens at latex level. So if
> you are in a \mathbf inset and toggle bold, the inset is suppressed
> and merged into the owner inset.
Well Andre what IS \mathbf for you? Is it an inset on it's own or some
prope
I wonder whether it would be prudent to handle font changes by insets (just
for math, nothing to worry for the outside world - although this would
hit the outside world the day they decide to support macros as well)
The problem is as follows:
If there is a macro
\newcommand{\vec}[1]{\mathbf{