>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:

Martin> Came up with the attached patch. It adds a method to
Martin> CutAndPaste for resetting the paragraph styles in the cut
Martin> buffer 0. 

I do not like much the fact that this code is added in CutAndPaste.C.
It should live in some *funcs.C file. Of course, you do that because
you access the cliboard directly. But again, this is wrong: it may
happen that the theCuts[0] does not use the same textclass and thus
the same default layout.

What I propose is to run resetParagraphStyle on the whole LyXText
after pasting. This cannot really hurt :)

JMarc

Reply via email to