On Mon, Oct 21, 2002 at 11:17:46AM +0100, Angus Leeming wrote: > I draw your attention to what happens after a "Paste" request. > Note the different addresses of the newly created inset and of > that sent to draw. It seems to me that the "wrong" inset is being > added to the buffer.
Funny. > It seems that this is the root of the problem. Is their a reason for > things being the way they are. Would pasing the newly created > inset into the second buffer (as opposed to the inset created by the > copy operation) break undo/redo etc, etc... > > I'd value some insight from someone more familiar with the > cut and paste stuff. I am not familiar with this code but I know a simple solution for this kind of problem (and a few more): Do not operate on lyx's internal structures for cut and paste. Instead convert the selection to a string that resembles the external file format on "cut", and read from this string as if this were coming from a .lyx file on "paste"... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)