diff options
author | Tünde Tóth <toth.tunde@nisz.hu> | 2023-05-17 13:49:29 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2023-05-19 13:09:26 +0200 |
commit | deb2512e5ea16ad8fa9f975569fbc5363cebf8dd (patch) | |
tree | 41e74bc24ea192939166ee971cd29b62c8e1c856 /xmloff | |
parent | 384a80fc56e75e3d1ee18ffc303db85490716829 (diff) |
tdf#148142 chart: fix export of modified On/Between tick marks
Reset the MajorOrigin property after import to avoid
of the bad export of the modified document, which reset
the original On tick marks/Between tick marks value.
Follow-up to commit 40d83914d43f60a196dfabddea0b52e2046b333a
"tdf#127792 implement UNO chart attribute MajorOrigin".
Change-Id: I0e3915b7d1b601abd40fbd1ba9d01fc05a8fb7c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151885
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLAxisContext.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLAxisContext.cxx b/xmloff/source/chart/SchXMLAxisContext.cxx index ad8b187f88e2..ae55da90f8b5 100644 --- a/xmloff/source/chart/SchXMLAxisContext.cxx +++ b/xmloff/source/chart/SchXMLAxisContext.cxx @@ -547,6 +547,7 @@ void SchXMLAxisContext::CreateAxis() { aScaleData.ShiftedCategoryPosition = rtl::math::approxEqual(fMajorOrigin, 0.5); xAxis->setScaleData(aScaleData); + m_xAxisProps->setPropertyValue("MajorOrigin", uno::Any()); } } |