On 24-Apr-2002 Andre Poenitz wrote: > On Wed, Apr 24, 2002 at 09:25:10AM +0200, Juergen Vigna wrote: >> > Right clicking any math environment while the cursor isn't inside it >> > brings the math panel up as expected, but then tring to insert any symbol >> > with it will lead to a crash. >> >> Andre I think you forget to to a bv->lockInset(this, false), before opening >> the math panel. Head that we now don't call edit() before passing the click >> event to the inset so it is NOT locked anymore if it wasn't locked before! > > I am completely lost there since I don't understand the logic in this area. > Do you feel able to fix it?
Come on Andre. It's only inside the mathed inset. What do you do when clicking on an inset? Do you set your status? Do you know when you're locked or not "inside" mathed (some sort of 'bool locked')? If you know it then if someone clicks on the inset and calls insetButtonPress and you're not already locked you have to do the same think as you would do with button=[12] and then only open the math-panel. IMO a quick fix would be to check for button 3 only at the end of the function. Well while writing this mail I had a look at the source and just fixed it ;) Have a look I left the old code "#if 0" if you think I did the right thing you can just remove the old code. Jug -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39100 Bozen Web: http://www.sad.it/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ It is impossible to make anything foolproof because fools are so ingenious.