Bug 93747 - Apply style in a selected table cell leaks to another table cell
Summary: Apply style in a selected table cell leaks to another table cell
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium minor
Assignee: Not Assigned
Keywords: preBibisect, regression
Depends on:
Blocks: Styles Writer-Tables
  Show dependency treegraph
Reported: 2015-08-28 14:23 UTC by Pierre-Luc Rigaux
Modified: 2021-03-26 16:02 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:

Here a doc that provide a visual example of the bug. (12.27 KB, application/vnd.oasis.opendocument.text)
2015-08-28 14:23 UTC, Pierre-Luc Rigaux

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Luc Rigaux 2015-08-28 14:23:56 UTC
Created attachment 118245 [details]
Here a doc that provide a visual example of the bug.

In table in writer
1. Select a table cell (full cell selection, not just the text) in the second column or second row.
2. apply a style (like Header 1 or bullet).


The style in the selected cell changed ... and the styles of a neighbor cell also changed (not wanted).


Only the style in the selected cell changed.
Comment 1 A (Andy) 2015-08-30 09:00:12 UTC
Reproducible with LO, Win 8.1

If I insert a 4x4 table in a new WRITER document and select the whole cell in row 2 / column 2 and change it to numbering style with the icon in the toolbar at the top then the cell in row 2 / column 1 gets also the numbering style.
To reproduce it you need to select the whole cell not only the text (as mentioned in the bug description) and you need to mark the cell from its right border to the left border (going with the mouse from the right border of the cell to the cell to the left while holding the left mouse button, then going back that not both cells are selected).  If you do it the other direction it is not reproducible.
Comment 2 raal 2015-10-29 10:46:01 UTC
Can not reproduce with Version (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89, win7 -> regression

I can reproduce with Version:
Build ID: 57d6b92b69a31260dea0d84fcd1fc5866ada7adb, win7
Comment 3 raal 2015-11-18 19:15:15 UTC
Reproducible with Version:
Build ID: fc8f44e82de4ebdd50ac5fbb9207cd1a59a927e3
bibisect-43max$ git checkout oldest
Comment 4 Robinson Tryon (qubit) 2015-12-14 05:32:39 UTC Comment hidden (obsolete)
Comment 5 Joel Madero 2015-12-14 20:36:04 UTC
Bodhi Moksha

Either I'm not understanding this bug correctly or I'm not able to reproduce.

Build ID: 5df326438fd3a5613a52b4de1935426911ff1301
Comment 6 FutureProject 2016-01-17 19:08:03 UTC
I can reproduce with the following steps:
1. Make 4x4 table in new Writer document
2. Row1 Column1 write "a"
3. Row2 Column1 write "b"
4. Press and hold left mouse button on cell with the "b"
5. Drag mouse cursor up to cell with the "a": both cells are highlighted
6. Drag mouse cursor back to cell with the "b": only cell "b" is highlighted
7. Let go left mouse button
8. On the right-hand side choose "Heading 1" in the Styles menu
9. Both cells' contents are formatted
Comment 7 FutureProject 2016-01-17 19:21:34 UTC
Regarding comment 6:

Was reproduced on:
Windows 10 Pro, Version 1511 (OS Build 10586.36)
Version: Build ID: 2b9802c1994aa0b7dc6079e128979269cf95bc78
Locale: de-DE (de_DE)
Comment 8 Joel Madero 2016-01-17 19:33:04 UTC
Bodhi Moksha (fork of Ubuntu 14.04)
LibreOffice 3.3 - 5.2 dev

Following the instructions in comment 6 as well as a video that Raal sent me - I see the same behavior going all the way back to 3.3 (inherited from OOo). I'm updating the status.

@Raal - if you don't mind checking again to see if you can find a regression here....I followed your steps (and FutureProject's steps) exactly and I see the same behavior throughout (from 3.3 - 5.2).
Comment 9 Joel Madero 2016-01-17 19:34:31 UTC
Dangit sorry for the noise - I lied, I can see the regression....updating now (sorry again!)
Comment 10 Joel Madero 2016-01-17 19:38:47 UTC
Bodhi Moksha
Bibisect 35all package (3.5 - 4.2)

New findings:
I can confirm the problem throughout the bibisect package but 3.3 doesn't show the problem so it is a regression.
Comment 11 Xisco Faulí 2016-09-14 15:28:56 UTC
Adding 'preBibisect' keyword...
Comment 12 Xisco Faulí 2016-09-14 15:48:40 UTC
[This is an automatic message]

Changing version to in order to get rid of 'preBibisect' version as looks to be the last version not covered by bibisect-43all.
Comment 13 Telesto 2017-02-14 19:25:53 UTC
Still repro with:
Build ID: a296a69c984b17cfbcd249cf6bdc191d08dff2a6
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-02-06_00:00:55
Comment 14 Julien Nabet 2017-09-24 07:22:08 UTC
On pc Debian x86-64 with master sources updated 2 days ago or with LO Debian package, I don't reproduce this.
I retrieved the attached file and applied style "Heading 1" of the right bottom cell of first array, only the cell was changed.
Did I miss something?
Comment 15 QA Administrators 2018-09-25 02:51:46 UTC Comment hidden (obsolete, spam)
Comment 16 Justin L 2021-03-26 16:02:10 UTC
repro 7.2+

After applying the new paragraph style (I choose Title since it is so visible), undo the change, and you will see that the text of the other cell is included in the selection. That should be a pretty good clue about what is happening here.