Bug 163422 - unexpected behavior
Summary: unexpected behavior
Status: RESOLVED DUPLICATE of bug 159690
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-14 08:29 UTC by Michel COLLET
Modified: 2024-10-15 19:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
detailed example in Calc (14.26 KB, application/vnd.sun.xml.calc)
2024-10-14 11:00 UTC, Michel COLLET
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel COLLET 2024-10-14 08:29:41 UTC
Description:
an automatic "Adjust text" behavior occurs after validating an update of a cell containing line returns (or new lines)

Steps to Reproduce:
1. "Copy" a text from Writer containing long lines and line returns (or new lines).
2. In Calc, enter inside a cell.
3. "Special paste" + "Paste unformated text" the copied text from Writer to the inside of the cell in Calc
4. Validate the cell.

Actual Results:
1. The cell get the attribute "Ajuster le texte" ("Adjust the text").
2. The text is adjusted to the cell width and breaked accordingly.
3. The height of the line containing the cell is expanded accordingly.

Expected Results:
The cell format should'nt have to be changed when "Paste unformated text" is selected


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 1 Xisco Faulí 2024-10-14 08:52:10 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Michel COLLET 2024-10-14 11:00:51 UTC
Created attachment 197042 [details]
detailed example in Calc

the data source + the "Copy" + the "Special paste, Paste unformated text" are shown and explained in this Calc document
Comment 3 Justin L 2024-10-14 16:02:20 UTC
(In reply to Michel COLLET from comment #0)
> Description:
> an automatic "Adjust text" behavior occurs after validating an update of a
> cell containing line returns (or new lines)
This description sounds like bug 159690 which was recently fixed for the upcoming 24.2.7 and 24.8.3. 

> Steps to Reproduce:
> 1. "Copy" a text from Writer containing long lines and line returns (or new
> lines).
> 2. In Calc, enter inside a cell.
OK - I double-clicked on the cell to get a blinking cursor in cell G1
> 3. "Special paste" + "Paste unformated text" the copied text from Writer to
> the inside of the cell in Calc
OK - I get three lines of text that spills out below the row height of row 1.
> 4. Validate the cell.
I press ENTER. Row 1 grows to accomodate the three lines of text. In the fixed version,  "Format Cells - Alignment" no longer forces on "Wrap text automatically".

So I think the problem you are discussing is fixed, but it is hard to know for sure given translation differences...
Comment 4 Michel COLLET 2024-10-15 10:59:09 UTC
It seems to be fixed if as you wrote: In the fixed version,  "Format Cells - Alignment" no longer forces on "Wrap text automatically".

Thanks a lot for your quick response and previous correction, Michel
Comment 5 ady 2024-10-15 19:33:56 UTC

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