Bug 157422 - Wrap cell contents not being retained on Libreoffice Calc
Summary: Wrap cell contents not being retained on Libreoffice Calc
Status: RESOLVED DUPLICATE of bug 153527
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2023-09-25 03:59 UTC by J
Modified: 2024-01-24 06:27 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J 2023-09-25 03:59:22 UTC
Description:
Instead of being able to globally set the format of the cells to wrap the contents I have to do it on most of the cells individually.

Steps to Reproduce:
1.Open calc spreadsheet
2.Type contents in cell - enough to need to wrap
3.Select sheet or column or cells ->Format->Cells -> Wrap option (it will wrap that selection
4.Move down to type in more cells - usually wrap setting not retained

Actual Results:
The wrap setting doesn't keep

Expected Results:
If I set it for a column or a sheet you should only need to do it once


Reproducible: Always


User Profile Reset: No

Additional Info:
No other information
Comment 1 m_a_riosv 2023-09-25 17:36:25 UTC
You can edit 'Default style', to have it as default, it is the root of all other styles and direct format.
Comment 2 J 2023-09-26 12:31:19 UTC
Ok but should I have to do that?
Comment 3 ady 2023-09-26 18:30:02 UTC
(In reply to J from comment #0)

> Steps to Reproduce:
> 1.Open calc spreadsheet
> 2.Type contents in cell - enough to need to wrap
> 3.Select sheet or column or cells ->Format->Cells -> Wrap option (it will
> wrap that selection
> 4.Move down to type in more cells - usually wrap setting not retained
> 
> Actual Results:
> The wrap setting doesn't keep

Not repro on Windows with LO 7.5.3.2 nor with recent Dev 24.2. The (long) text introduced in empty cells on the same column that has the "Wrap Text" property is correctly wrapped (i.e. the width of the column is kept while its height gets adapted according to the newly-introduced (long) text).

However, there is an issue with selecting a range of cells (or all of them) when (only) part of them is already with the Wrap Text property set ON (but not all the selected range has it):

1. On a new clean spreadsheet, apply "Wrap Text" on only part of the cells (e.g. one cell, or one column only). > relevant icon shows status ON.

1.1. Optional (but convenient): add long text to a cell with "Wrap Text"; and also to a cell that does not have such property.

2. Select (or focus on) a cell that does _not_ have the "Wrap Text" property > relevant icon shows status OFF.

3. Select _all_ cells > icon shows status ON.

4. Press "Wrap Text" icon once > all cells without "Wrap text".

5. Immediately repeat step 4 once (with _all_ cells still selected) > cells go back to the same status as before step 4.

The result might be (and is) convenient, but in some cases the user actually wants to change the whole range of selected cells (that previously had a mix status for "Wrap Text").

Workaround: With the relevant cells selected > [CTRL]+[1] > Alignment > click on "Wrap text automatically" once will make the (mix) status change to OFF > click once more to set it to ON for all the selected range of cells > click once more to return to the "mix" status.

IMHO, if this is what is actually happening to the reporter, I would not modify the behavior unless a clear improvement can be achieved – one that can be clearly explained, documented and be intuitive for users.
Comment 4 J 2023-09-28 01:08:41 UTC
Ill give the workaround a go but you should know that the bug is appearing on the latest stable version as well. I will report back.
Comment 5 QA Administrators 2023-09-28 03:18:09 UTC Comment hidden (obsolete)
Comment 6 m_a_riosv 2023-09-28 20:19:45 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 7 J 2023-10-04 10:26:11 UTC
There appears to be an improvement by operating it in Safe Mode.  What does this mean?
Comment 8 QA Administrators 2023-10-05 03:20:13 UTC Comment hidden (obsolete)
Comment 9 J 2023-10-05 09:49:04 UTC
Correction to previous comment - opening the documents in Safe Mode makes no difference
Comment 10 Kira Tubo 2023-10-08 02:02:19 UTC
I am able to reproduce on Windows, but ONLY when whole sheet is selected. For me, the issue is NOT reproducible if only columns or rows are selected. (Checked this in safe mode as well)

Steps:
1. Open new calc spreadsheet
2. Type contents in A1 so that it would need to wrap
3. Select WHOLE sheet
4. Format > Cells > Alignment > check "Wrap text automatically", then click OK
5. Type contents in another cell so that it would need to wrap
6. Check Format > Cells > Alignment again to see that "Wrap text automatically" is not checked for cells other than A1 (not expected)

Screencast: https://somup.com/c06jV9Bu2p

----------------------

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dd7fc07f83416a3d8a444947b7d28f7347520d6a
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 11 Ezinne 2023-10-08 19:35:25 UTC
Reproducible in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ef3d937415185ef66e32dd3043783eddcd03db5
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 12 J 2023-10-10 01:28:28 UTC
I am doing it by the sheet
Comment 13 Stéphane Guillou (stragu) 2024-01-24 06:27:05 UTC
Reproduced in LO 7.5.9 but resolved in recent trunk build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d71c21890c908225945f0fc3566255ed150f660
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

This is a duplicate of bug 153527, marking as such.

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