summaryrefslogtreecommitdiffstats
path: root/chart2/source/view/charttypes
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2024-01-25 09:10:52 -0500
committerJustin Luth <jluth@mail.com>2024-01-29 14:16:28 +0100
commit4b2e44f81cdac757a62e431505075fc8a3d98471 (patch)
tree5c2b705155f902970877587a896b887bd16855a6 /chart2/source/view/charttypes
parentloplugin:unnecessarymethods (diff)
downloadcore-4b2e44f81cdac757a62e431505075fc8a3d98471.tar.gz
core-4b2e44f81cdac757a62e431505075fc8a3d98471.zip
NFC chart2: remove unnecessary variables
Change-Id: I089972f0fd60fbaaff27a304c248a7eb882b972b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162587 Tested-by: Justin Luth <jluth@mail.com> Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'chart2/source/view/charttypes')
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index f3a3a8bebd61..b9773494d785 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -731,13 +731,11 @@ rtl::Reference<SvxShapeText> VSeriesPlotter::createDataLabel( const rtl::Referen
// in case legend symbol has to be displayed, text shape position is
// slightly changed.
- const awt::Point aUnrotatedTextPos(xTextShape->getPosition());
if( xSymbol.is() )
{
- const awt::Point aOldTextPos( xTextShape->getPosition() );
- awt::Point aNewTextPos( aOldTextPos );
+ awt::Point aNewTextPos(xTextShape->getPosition());
- awt::Point aSymbolPosition( aUnrotatedTextPos );
+ awt::Point aSymbolPosition(aNewTextPos);
awt::Size aSymbolSize( xSymbol->getSize() );
awt::Size aTextSize = xTextShape->getSize();