Bug 165584 - (Calc) Wrapping cells from a macro differs from doing it manually
Summary: (Calc) Wrapping cells from a macro differs from doing it manually
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
25.2.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2025-03-05 12:30 UTC by mrupio
Modified: 2025-08-24 18:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A sample file to reproduce. (15.41 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-03-05 12:32 UTC, mrupio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrupio 2025-03-05 12:30:22 UTC
Description:
When I wrap cell content (from a macro) using something like
Range.IsTextWrapped = True
the result differs from when I do it by hand or using recorded macro.

The cell height in the first case is too small.

Steps to Reproduce:
1. In a new document enter a long line in a cell.
2. Wrap it using range attribute "IsTextWrapped".
3. The cell height is too low.

Actual Results:
The cell height is too low and the cell content doesn't fit the cell.

Expected Results:
Cell content fits the cell.
This is the case when I wrap cells manually or by recorded macro.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: pl-PL
Calc: threaded
Comment 1 mrupio 2025-03-05 12:32:09 UTC
Created attachment 199621 [details]
A sample file to reproduce.
Comment 2 Saburo 2025-03-08 08:51:57 UTC
reproduce
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a91494780bb59afe8c971003e6b809f1e66df050
CPU threads: 12; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: CL threaded