On 19-Oct-2001 John Levon wrote:

> actually, the code of the inset_owner is TEXT. And looking at
> the source, I see lots of places in insettext that setInsetOwner
> to the text inset. I see nowhere where the direct owner of
> a Paragraph is an insetert, so of course it won't call the right
> function.
> 
> I bet if you add a checkInsertChar() to lyxtext you'll see that
> working.
> 
> So, we need to call the owner of that inset text right ? but I don't
> see how to get that owner (something to do with locking inset ?)

Ok thanks John for the input, you see normally things are so obvious
that one doesn't see it. Now the problem had actually 2 glitches:

1. The one noted by you that paragrap->owner is an InsetText so the
   function checkInsertChar was missing there!!!

2. The function checkInsertChar was not called at all as when pasting
   with the central mousebutton insertChar is called directly and not
   over the minibuffer paste function (from Buffer::insertString...)

Both should be fixed after my next commit! (actually it was REALLY easy
to fix as soon as I put my nose on the right spot ;)

         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
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Courtship to marriage, as a very witty prologue to a very dull play.
                -- William Congreve

Reply via email to