diff options
author | Tünde Tóth <toth.tunde@nisz.hu> | 2020-12-11 09:13:46 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-12-16 18:26:26 +0100 |
commit | b0068342398786ca50304260434a18880dddf74d (patch) | |
tree | 3ab817e39b7c9bad27a825f335008ed347ee2cf6 /chart2/qa/extras/chart2import.cxx | |
parent | f5ab8bcbfd20ecce4a358f62ee3f81b8b968a5de (diff) |
tdf#138777 pie chart: improve long data label width
to avoid chart distortion.
Reduce the maximum text width of data point label shape based,
because in some cases the long data label flowed out of the chart.
Change-Id: I045c81ecc6ce579e1f472d7ea67e04315ce9c60b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107585
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/qa/extras/chart2import.cxx')
-rw-r--r-- | chart2/qa/extras/chart2import.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx index e4742405d967..9bb042fb6867 100644 --- a/chart2/qa/extras/chart2import.cxx +++ b/chart2/qa/extras/chart2import.cxx @@ -2581,8 +2581,8 @@ void Chart2ImportTest::testTdf133376() CPPUNIT_ASSERT(xDataPointLabel.is()); // Check the position of the 3rd data point label, which is out from the pie slice awt::Point aLabelPosition = xDataPointLabel->getPosition(); - CPPUNIT_ASSERT_DOUBLES_EQUAL(458, aLabelPosition.X, 30); - CPPUNIT_ASSERT_DOUBLES_EQUAL(5114, aLabelPosition.Y, 30); + CPPUNIT_ASSERT_DOUBLES_EQUAL(1082, aLabelPosition.X, 30); + CPPUNIT_ASSERT_DOUBLES_EQUAL(5462, aLabelPosition.Y, 30); } void Chart2ImportTest::testTdf134225() @@ -2652,8 +2652,8 @@ void Chart2ImportTest::testTdf136105() CPPUNIT_ASSERT(xDataPointLabel.is()); // Check the position of the 1st data point label, which is out from the pie slice awt::Point aLabelPosition = xDataPointLabel->getPosition(); - CPPUNIT_ASSERT_DOUBLES_EQUAL(8610, aLabelPosition.X, 500); - CPPUNIT_ASSERT_DOUBLES_EQUAL(1684, aLabelPosition.Y, 500); + CPPUNIT_ASSERT_DOUBLES_EQUAL(7978, aLabelPosition.X, 500); + CPPUNIT_ASSERT_DOUBLES_EQUAL(1048, aLabelPosition.Y, 500); } } |