Bug 113605 - TABLES: Column/row properties of cells should be preserved on copy into an existing table (Paste Special should insert the source unformatted)
Summary: TABLES: Column/row properties of cells should be preserved on copy into an ex...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL: https://help.libreoffice.org/6.2/en-U...
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
Reported: 2017-11-02 15:56 UTC by Christian Lehmann
Modified: 2018-10-15 10:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Test table in Writer (11.17 KB, application/3dr)
2018-10-08 13:18 UTC, Timur

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lehmann 2017-11-02 15:56:23 UTC
If I copy a column/row, then I want to copy its properties with it. This includes background shading of cells. Currently, this is not reproduced.
Comment 1 Dieter Praas 2017-11-04 08:07:07 UTC
I assume, that background shading is the same as background colour.

1. Open writer and create a table.
2. Set background colour to some cells.
3. Copy the row, containing this cells

a) Paste it in an existing table => background colour doesn't persist
b) Paste it as a new table => background colour persists

I haven't proved, if this is the same with other properties.
Comment 2 Christian Lehmann 2017-11-04 09:30:50 UTC
Thanks for the additional precision, confirmed.

So the bug is: Cell properties (color, shading, borders) are not preserved upon copying a cell or column or row into an existent table (no matter whether the same or another one).

Cell properties are preserved if a new table is created by the transferred material.

This is inconsistent: Cell properties should always be preserved upon copy or cut operations.
Comment 3 Timur 2018-10-08 13:18:43 UTC
Created attachment 145468 [details]
Test table in Writer

We need to reconsider this one. 
On a simple copy to existing table, we copy cell content and don't want to copy whole cells including properties like color and border. 
We should have an option for that and that's via Paste special. 

From what I see, when we copy cells or row (like red row 3) to the existing table (ex. to row 5), from 6.2+ we have somewhat better RTF copying properties but it's still not correct with cells content (cell content from 1st column repeated).
Comment 4 Heiko Tietze 2018-10-15 09:12:33 UTC
Tables can have a direct formatting (cell background or font color, for example, set) and a styles (also known as Table > Autoformat Styles... from the past, now available as Table Style in the sidebar). Copy/paste should preserve the formatting but Paste Special should allow to insert the source unformatted. When copying content from a table with style (let's say even column with shading) the target style has to be used (similar discussion on what should happens for copy/paste with styles but for slides in bug 112697).