diff options
author | Justin Luth <justin.luth@collabora.com> | 2024-11-25 09:58:45 -0500 |
---|---|---|
committer | Justin Luth <justin.luth@collabora.com> | 2024-11-25 20:45:27 +0100 |
commit | 507c6fc66cda7c1022008b3d1d4c087540cb2d18 (patch) | |
tree | d152ced3b7dea2de3ae7b43ec929b415c7e197cb /xmloff/source/transform/CreateElemTContext.cxx | |
parent | 8f0a2c52f60f2d11bf4a1f8df246f651ce01360e (diff) |
tdf#124741 export xlsx: no defaultRowHeight without customHeight
Apparently, the value of defaultRowHeight is just some nice
kind of suggestion to Excel, since optimalRowHeight rows
can be less than what is specified in defaultRowHeight.
Since Calc always treats defaultRowHeight as authoritative,
on export it needs to always export it that way.
Apparently there are some TWIPS calculations
going on because while Calc defaults
to exporting a defaultRowHeight of 12.80,
Excel is still round-tripping it as 12.75.
make CppunitTest_sc_subsequent_export_test2 \
CPPUNIT_TEST_NAME=testTdf120168
(In this unit test, it originates as customHeight=1,
but Calc was round-tripping it without that.
Although the round-trip looked identical in Calc,
in Excel the empty rows were now much shorter,
being height-formatted according to the default font size.)
Change-Id: I7ed6b612de0fa508a89dc4cf357b873de230962c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177276
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'xmloff/source/transform/CreateElemTContext.cxx')
0 files changed, 0 insertions, 0 deletions