Bug 159351

Summary: FILEOPEN: prompted to save changes when no change was made on ODS file with multiline cell
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aron.budea, parisoplop, telesto
Priority: medium Keywords: bibisected, bisected, filter:ods, regression
Version: 24.2.0.0 alpha1+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=158252
Whiteboard:
Crash report or crash signature: Regression By: Paris Oplopoios
Bug Depends on:    
Bug Blocks: 116625    
Attachments: test ODS

Description Stéphane Guillou (stragu) 2024-01-24 02:00:44 UTC
Created attachment 192136 [details]
test ODS

Steps:
1. Open attachment, which has a cell with multiline text
2. Close Calc

Result: prompted to save changes when no change was made.

Bibisected with linux-64-24.2 to first bad build [d536a038969c482dff40481d849d8671a9ac7f5f] which points to:

commit 17e362e56f9e15d0214c441e632c91d22e58519d
author	offtkp 	Wed Nov 22 17:00:53 2023 +0200
committer	Paris Oplopoios 	Thu Nov 23 16:13:39 2023 +0100
tdf#158252 sc: Enable text wrapping when inputting line breaks in cell
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159758

Paris, can you please have a look?
Comment 1 Henning 2024-01-26 21:53:58 UTC
My observations to reproduce:

1. create a document with one multiline cell and all other cells as singleline
2. save+exit
3. open document
4. change active cell by using the cursor-keys
5. the cell that was previously selected will be changed to multiline (on cell exit)

The undo-list now has the entry "Attribute" for every cell-change without specifying which attribute as changed.

Other occasions where this behavior appears include copy by Ctrl+c or closing the document.

The cells are not changed to multiline when the selected cell is changed by using the mouse.


From my point of view the severity should be increased because this modifies the data unintentionally.


Version: 24.2.0~rc2 from Debian-repository (4:24.2.0~rc2-2)
Comment 2 ady 2024-02-24 15:35:31 UTC

*** This bug has been marked as a duplicate of bug 159690 ***