On Thu, Apr 20, 2006 at 10:41:36AM +0200, Georg Baum wrote: > Jean-Marc Lasgouttes wrote: > > >>>>>> "Georg" == Georg Baum > >>>>>> <[EMAIL PROTECTED]> > >>>>>> writes: > > > > Georg> We tried hard to make sure that text pasted into ERT has the > > Georg> right pseudo-language, but we forgot to reset the language of > > Georg> text pasted from ERT to normal text. The attached patch fixes > > Georg> that, but I am not entirely lucky with it. I would like to > > Georg> explicitly handle LFUN_COPY and LFUN_PASTE in InsetERT, but > > Georg> this means either to reimplement copySelection and > > Georg> cutSelection, or to do some surgery to these functions. Both is > > Georg> not nice either, so I went with the attached solution. > > Georg> Comments? If this is to go in: Does anybody have a better name > > Georg> for resetOwnerAndChanges? > > > > Looks reasonable. Once it is tested and works, it should go in branch > > and trunk. > > I put the attached in trunk now since it works for me. If somebody could > confirm that it will go in branch, too.
I tested it in 1.4 and it works. The funny thing with bug 2476 was that after saving and reloading the document the bug was disappearing. -- Enrico