chart2/source/view/charttypes/VSeriesPlotter.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 4b2e44f81cdac757a62e431505075fc8a3d98471 Author: Justin Luth <justin.l...@collabora.com> AuthorDate: Thu Jan 25 09:10:52 2024 -0500 Commit: Justin Luth <jl...@mail.com> CommitDate: Mon Jan 29 14:16:28 2024 +0100 NFC chart2: remove unnecessary variables Change-Id: I089972f0fd60fbaaff27a304c248a7eb882b972b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162587 Tested-by: Justin Luth <jl...@mail.com> Reviewed-by: Justin Luth <jl...@mail.com> 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();