summaryrefslogtreecommitdiff
path: root/dbaccess/inc
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2024-01-29 10:20:16 -0500
committerMiklos Vajna <vmiklos@collabora.com>2024-01-30 10:42:48 +0100
commit85f4395b6f40c0295a190cca09ecd51858fc3b31 (patch)
tree33469ce5c59789be98b49c5a9442c69bb64ef23d /dbaccess/inc
parenta77403d11a60ebe6aeb33d9b6ae611412d9ab1cc (diff)
tdf#146756 pie chart2 import: improve response to bestFit failure
Fixes a 7.2 regression from commit b0068342398786ca50304260434a18880dddf74d author Tünde Tóth on Wed Dec 16 18:26:26 2020 +0100 tdf#138777 pie chart: improve long data label width When a label fails to bestFit inside the pie slice, it will be placed outside of the pie of course. However, we can't assume that there is any chart space available to place a label outside. Tünde got that part right. He limited the space available based on the chart edge. But there are some optimizations that can improve that. 1.) Every little bit can help. As we go away from the X-axis, we gain a little bit of space, so use that... 2.) Don't assume that the pie chart is in the middle of the page. 3.) Use a consistent algorithm for all degrees - much simpler. make CppunitTest_chart2_import CPPUNIT_TEST_NAME=testTdf146756 Change-Id: I0d8528bc227768f91237cda6b74bf9365820bfa7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162704 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'dbaccess/inc')
0 files changed, 0 insertions, 0 deletions