tdf#121281 pie chart: improve data label position
commitf22b77f204e433004aeb5fc2885881c03a62aa70
authorTünde Tóth <toth.tunde@nisz.hu>
Wed, 16 Dec 2020 10:29:48 +0000 (16 11:29 +0100)
committerLászló Németh <nemeth@numbertext.org>
Mon, 28 Dec 2020 10:55:40 +0000 (28 11:55 +0100)
tree862351744f9d245e1b004ceefcb188227a89d478
parentbd51df8e4e267cdad369af402bb243cb3ed222f1
tdf#121281 pie chart: improve data label position

to avoid chart distortion.

Move the data label to inside the chart area when it
goes outside the border.

Change-Id: I78669ed601f28129944ac8f61c6478d386322b76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107829
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
chart2/qa/extras/chart2import.cxx
chart2/qa/extras/data/xlsx/incorrect_label_position.xlsx [new file with mode: 0644]
chart2/source/view/charttypes/PieChart.cxx
chart2/source/view/inc/VSeriesPlotter.hxx