Copy from WorksheetGrid lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- straetch · 2017-11-13 15:53 In a WorksheetGrid with no editor active (goAlwaysShowEditor = false and goEditing = false) if the user clicks on a cell and copy the cell content (Ctrl-C), then the clipboard contains the text from within the cell, but the last character is missing. Also in that case, with no changes allowed to the grid, it would be interesting to be able to copy a part of the cell content. ---------------------------------------------------------------------- wp · 2017-11-13 17:34 Please test the current r6069. A trailing zero byte was missing for the CF_TEXT clipboard format; normally fpspreadsheet copies several formats to the clipboard, and the CF_Text format normally is not pasted, but a more complex format. Therefore this bug was not seen before. I hope this bug won't bite me again, because there is an ongoing discussion about a trailing byte causing trouble in Linux. ---------------------------------------------------------------------- straetch · 2017-11-14 08:36 The last character  is no longer missing with r6069. Thanks. I notice that text in a cell, containing a return character, is put between "" (double quotes) when copied to the clipboard. ---------------------------------------------------------------------- wp · 2017-11-14 11:44 Copying to clipboard as text occurs via a csv stream. Therefore a cell with manual linebreak is quoted (because the linebreak normally would be interpreted as a new row). In r5070 I added a special treatment for the case of a single cell where the cell text can be copied directly. ---------------------------------------------------------------------- straetch · 2017-11-15 15:42 Now it works as expected. Many thanks.