summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2019-04-05 22:04:13 +0530
committerAndras Timar <andras.timar@collabora.com>2019-04-08 17:55:31 +0200
commit97af58093978d8e6b9d90eedcc59141304e7200e (patch)
tree6d197b84068b5ca7e096cd60b22e1ed61b4721da /extras
parentea3a1b075154a665d30aaac6513812ceb839f64b (diff)
tdf#123421 : xlsx export : Don't write data field entry...
under colFields tag if there is only one data-field. <colFields count=[*]> <field x="-2"/> <--- -2 indicates data field. </colFields> Excel 2013/2016 seems to crash at the presence of '<field x="-2"/>' in colFields when there is only one data-field. Additionally, call GetOutputRangeByType(sheet::DataPilotOutputRangeType::TABLE) on all ScDPObject's in non-const mode, so that the internal pOuput member of ScDPObject is populated. Otherwise the const GetOutputRangeByType(sheet::DataPilotOutputRangeType::TABLE) call always return an invalid range. This also adds 2 unit tests :- 1. To check the presence of <field x="-2"/> in colFields tag if there are more than one data-fields. 2. To ensure the absence of <field x="-2"/> in colFields tag if there is only one data-field. Change-Id: I8f470bd1ab883f73586f04a3fcc30e3fbf948c4a Reviewed-on: https://gerrit.libreoffice.org/70316 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'extras')
0 files changed, 0 insertions, 0 deletions