Created attachment 182523 [details]
wrapOptimal.xls: optimal height is enabled and functional
This document has optimal height enabled for row 1. It works too. (Can be confirmed by adding extra text and watching the height increase.) However, when saving to ODS format, the first save lists autostyle ro1 as use-optimal-row-height = false. (A second save immediately afterwards correctly sets = true.)
This is only seen on an immediate round-trip. If you make any change to row 1, then it will get the autostyle correctly.
I thought perhaps that running ScDocRowHeightUpdater::updateAll() might avoid this problem, but it doesn't.
For some reason, the same thing is not true for XLSX import.
True in master, and in 5.1, and in 3.6. Assuming inherited from OOo
Steps to reproduce
1.) open wrapOptimal.xls
2.) save as ODT format.
3.) reload ODT - add content to A1 and notice that the cell height doesn't grow.
*** This bug has been marked as a duplicate of bug 130383 ***