Description: A field is using an equation with CONCATENATE function merging the content of multiple other fields. The "wrap text automatically" feature is activated, the text is wrapped. When closing and opening the file again, the "wrap text automatically" feature is always deactivated and the text is not wrapped. Steps to Reproduce: 1. Open file using the CONCATENATE function for some fields to calculate a longer text content 2. Go to the field with CONCATENATE function (assume as example field B2) 3. Enable the feature "wrap text automatically" in this field (B2) 4. Close the file 5. Open the file again 6. Go to the previously mentioned field B2 7. Check the feature "wrap text automatically". It will be disabled, but should be enabled. 8. Check the feature "wrap text automatically" Actual Results: Feature "wrap text automatically" of affected field is disabled Expected Results: Feature "wrap text automatically" of affected field is enabled Reproducible: Always User Profile Reset: Yes Additional Info: [Information automatically included from LibreOffice] Locale: de Module: SpreadsheetDocument [Information guessed from browser] OS: Windows (All) OS is 64bit: no Version: 24.2.5.2 (X86_64) / LibreOffice Community Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: threaded
Please attach a sample file(s), reduce the size as much as possible without private information.
Created attachment 195561 [details] xlsx format example - the failure happens here Thanks for taking it! I've realized that it happens only for files stored in xlsx format. Open the file and check the "wrap text automatically" feature for fields B2 and B3. It's disabled. If you enable it, save and close the file, and then re-open it, the feature will be reset to disabled again.
Created attachment 195562 [details] ods format example - the failure doesn't happen It doesn't happen when the file is stored in ods format. Check fields B2 and B3. The "wrap text automatically" feature remains enabled after re-opening the file.
*** This bug has been marked as a duplicate of bug 161453 ***
WrapTextExample.xlsx stopped exporting wrap b/c || rItemSet.Get( ATTR_LINEBREAK ).GetValue() was removed from sc/source/filter/excel/xestyle.cxx