Description: Optimization of Column Width does not work with Right Indent. Steps to Reproduce: 1. Open New Calc 2. Cell Input [A1] = "ABC" 3. Change Cell Format : Horizontal=Right , Indent=40pt 4. Select Cell [A1] , Excecute "Optimal Column Width" Actual Results: 5. Cells become narrower, The text goes to the left and is no longer visible. Expected Results: 5. Appropriate cell widths and text is visible. Reproducible: Always User Profile Reset: No Additional Info: Or Open Attached File , Excecute "Optimal Column Width" --- Reproducible with Version: 7.1.2.2 (x86) / LibreOffice Community Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4 CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: default; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded Reproducible with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 90b12c9bad55e8f50b75a6d7b68caa27d82cc2b9 CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded
Created attachment 192009 [details] sample file
No repro with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: ef6083200a4f28e43198c7a0878da6f4b880725f CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded Please retest with newer version. Caolán did some tweaks in bug 158997. Thank you.
(In reply to raal from comment #2) > Please retest with newer version. Caolán did some tweaks in bug 158997. > Thank you. FWIW, this can be reproduced in recent LO 24.8 alpha on MS Windows, either using attachment 192009 [details] or a new file. I do not know whether the "optimal width" action should consider indentation, but I surely can understand users' expectation. I am setting this as NEW for now, but maybe there are some other reports regarding the same issue / behavior.
Confirmed with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: f4ef5435df5560e6b6b061ce4053c71e2819bf51 CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded
Confirmed with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 4e04e96334a841865914c1629202912e343c4cb2 CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded
Reproducible with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 3e8183e0c4b4c116cbd9187bfdfa7dfdf447805e CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded
Works well with MS-Excel.