tdf#146066 chart: fix automatic axis scaling at dates
commitdca425203c0205a6c570fa36f0dfdfa078960249
authorTünde Tóth <toth.tunde@nisz.hu>
Thu, 6 Jan 2022 14:05:10 +0000 (6 15:05 +0100)
committerLászló Németh <nemeth@numbertext.org>
Tue, 1 Feb 2022 08:41:38 +0000 (1 09:41 +0100)
treebd31a7bab7f705ed3ff2b0a3b47e4c9e9be9b9f6
parent721cd0658ab9721c01be0097f71a66ff3bdad7ac
tdf#146066 chart: fix automatic axis scaling at dates

Automatic scaling of the Y axis was incorrect
when the X axis was a date axis and the last
Y value was the highest value. To fix this,
increase maximum date value by one month/year.

Regression from commit ed2c880a691a0b179bbc92a8ce4ee49eac004035
(tdf#133005 Chart: fix ODF import of date axis position).

Change-Id: I0989ae8002e55f4ecfaf530ab845badb4409ecf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128209
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
(cherry picked from commit 81abc0d7657f194804681415a786627ab71475e3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129085
Tested-by: Jenkins
Reviewed-by: Tünde Tóth <toth.tunde@nisz.hu>
chart2/qa/extras/chart2import2.cxx
chart2/qa/extras/data/ods/tdf146066.ods [new file with mode: 0644]
chart2/source/view/axes/VCoordinateSystem.cxx