Download it now!
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)
Version:
(earliest affected)
5.4.2.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL: https://help.libreoffice.org/6.2/en-U...
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2017-11-02 15:56 UTC by Christian Lehmann
Modified: 2019-10-31 17:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


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

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 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).
Comment 5 QA Administrators 2019-10-16 02:30:19 UTC Comment hidden (obsolete)
Comment 6 Christian Lehmann 2019-10-31 17:55:06 UTC
In LO 6.3.2.2, behavior still is as it was before:

a) I copy a table row/column that has a background color to another table: the background color is not transferred.

b) I copy a row/column whose cells contain indented paragraphs: Indentation is transferred.

c) I copy one part out of a cell content which is an indented paragraph: Indentation is transferred.

Desired behavior, as far as I am concerned, would be:

a: Preserve the attribute.
b: Preserve the attribute.
c: Do not preserve the attribute, since it is one of the entire cell, not of its part.

This is related to Bug 124959: LO still lacks a principled distinction between attributes of entire block elements (paragraphs, table components) and inline elements (parts of a paragraph or of a table cell).