Bug 167501 - [26.2] Text with internal line breaks may overflow from fixed-size cells
Summary: [26.2] Text with internal line breaks may overflow from fixed-size cells
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Calc-Cells
  Show dependency treegraph
 
Reported: 2025-07-14 07:48 UTC by nobu
Modified: 2025-08-24 07:14 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (7.39 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-07-14 07:50 UTC, nobu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nobu 2025-07-14 07:48:29 UTC
Description:
Text with internal line breaks may overflow from fixed-size cells

Steps to Reproduce:
1. Open new Calc.
2. Insert 3 lines text in Cell [A3].
  (ex.)
aaa
bbb
ccc

3. With the default setting, the cell will automatically expand vertically to fit all text inside the cell.
4. Manually shrink to the original line height.

Actual Results:
5.  In the standard setting, it overflows from the cell and appears on top.

Expected Results:
5.  The cell does not overflow, only the last row "ccc" is displayed.


Reproducible: Always


User Profile Reset: No

Additional Info:

In the merged cell, it also overflows horizontally. The overflow mark is displayed at that time.

The sample file contains two: "Manually reduced cell height" and "Merged Cells".

Not reproduced with
Version: 25.8.0.1 (X86_64)
Build ID: 127f2cf27c25aaac008a1045ebfed22015cb3064
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: qt5 (cairo+xcb)
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

Reproducible with
[2025-07-14]
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 44df56058f4b84cb186dee9e091f665ac2a16105
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: qt5 (cairo+xcb)
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded
Comment 1 nobu 2025-07-14 07:50:04 UTC
Created attachment 201788 [details]
sample file

The sample file contains two: "Manually reduced cell height" and "Merged Cells".
Comment 2 raal 2025-07-14 21:06:02 UTC
Confirm with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8b60950947e8017b1f0b30538b6ef9a3bab51bee
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 raal 2025-07-14 21:12:20 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-26.2.
Adding Cc: to Armin Le Grand ; Could you possibly take a look at this one?
Thanks
 dd57ec374dc400967209d9b1475d0a027ad80a70 is the first bad commit
commit dd57ec374dc400967209d9b1475d0a027ad80a70
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Sat Jul 12 04:32:58 2025 +0200

    source 6c8b8020510f8816c40a42e6c3a7fde12012b142

187628: StripPortions: full Primitive usage for EditEngine Paint | https://gerrit.libreoffice.org/c/core/+/187628
Comment 4 Buovjaga 2025-08-22 16:42:28 UTC
I noticed and bibisected a similar glitch with attachment 187251 [details]