tdf#152581 SC: fix export of conditional border color
commitb66e35c721742d2ad1c8c2cc3251661b6ce81952
authorAttila Szűcs <attila.szucs@collabora.com>
Mon, 19 Dec 2022 04:35:36 +0000 (19 05:35 +0100)
committerAndras Timar <andras.timar@collabora.com>
Tue, 20 Dec 2022 12:57:14 +0000 (20 12:57 +0000)
tree88ed7a93055ae058fd942a15f2a584ff4a7d7638
parent4f09c5f925dbfc32829b2c6a81f43290b4d3512e
tdf#152581 SC: fix export of conditional border color

Call XclExpDxf::mpBorder->SetFinalColors(..) during export, before SaveXml().
It will calculate the prepered colors from mnLeftColorId to mnLeftColor,
so saveXml() will be able to save it.

Change-Id: I1a1eccccd621c6d0e883cb9016e60ae0b344bf90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144576
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
sc/qa/unit/data/xlsx/tdf152581_bordercolorNotExportedToXLSX.xlsx [new file with mode: 0644]
sc/qa/unit/subsequent_export_test2.cxx
sc/source/filter/excel/xeroot.cxx
sc/source/filter/excel/xestyle.cxx
sc/source/filter/inc/xestyle.hxx