Martin Vermeer wrote:

On Tue, 2005-04-05 at 20:27, Martin Vermeer wrote:


On Tue, Apr 05, 2005 at 07:23:40PM +0200, Helge Hafting wrote:


I typed  h_1 (k)=2654435769k/2^32-11 into math.
Then, I wanted the part after "=" in brackets, so I marked
it and inserted matching brackets from the math panel.  This
works fine i lyx 1.3

Now I got this:

[2654435769k/22^32-11]h_1 (k)=

No crash, but very strange.  The marked stuff wasn't supposed to go first!

Helge Hafting


Try my CutAndPaste patch... it might help.

- Martin


It does help. Attached a new patch doing two things:

1) it tests for ncols() > 0 (I.e., establishes that this is
a "grid-type" nest inset) before trying to update anything involving
column numbers. This fixes your bug, Helge.

2) It adds code to allow a math font or decoration inset to go "around"
selected text, in the way the delim inset does already. (Heck, this was
tricky.)

Please review.


Pressing END inside matching parantheses no longer kills lyx, nice.
Instead, the cursor goes to the last paranthesis. I can't
get to the end of line with END alone, but maybe the key isn't
meant to do that in math?

The selection stuff did not improve for me, though.
Type C-M 1+2+3+4
Mark 2+3
Type M-M(       [or do the same thing from math panel]
I get: (2+3)1++4 still.  Or was this meant to be used cumulatively
with your earlier patch?` I skipped that one, believing this
was a newer iteration of the whole thing. Or should I do a cvs update again?
This patch applied with no errors of any kind.

Helge Hafting





Reply via email to