Jean-Marc Lasgouttes wrote: > Juergen> - Copy some cells mith multiple lines to the clipboard > > I don't understand. The pasteselection code does not use the > clipboard, but the X selection.
That's what I meant. > Juergen> - Add a line to the last cell > Juergen> - Select several cells again. Make sure that the end of > Juergen> selection is in the last (added) line. > Juergen> - Insert via Middle Mouse button > > Juergen> The trick is that the inserted content has less paragraphs > Juergen> than the previous one, so that the pit of the selection end > Juergen> is invalid (> lastpit). > > But multi-cell selection does not reset the X cut buffer, does it? > > I think the bug is something different. I understand it as follows: in insertAsciiString, the cells content is completely replaced by the content of the paste_tabular cells. This is what setText() does (note that insetText::setText calls clear() at first). If the cursor is not reset, it might be invalid afterwards, if pos() or pit() does not exist anymore. False theory? Jürgen