[Libreoffice-commits] core.git: svx/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 1 21:09:12 UTC 2021


 svx/source/svdraw/svdotextdecomposition.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5c76a19342f06615f5722a558556fc7b760f7174
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue Jun 1 21:46:56 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Jun 1 23:08:26 2021 +0200

    This intermediate variable is redundant
    
    Change-Id: I856aab424bd4378d8c115e36971fd76fe7a7feed
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116458
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx
index 9c8c419873e9..14911dfd89be 100644
--- a/svx/source/svdraw/svdotextdecomposition.cxx
+++ b/svx/source/svdraw/svdotextdecomposition.cxx
@@ -1108,8 +1108,7 @@ void SdrTextObj::impDecomposeBlockTextPrimitive(
     // corner
     const double fStartInX(bVerticalWriting && bTopToBottom ? aAdjustTranslate.getX() + aOutlinerScale.getX() : aAdjustTranslate.getX());
     const double fStartInY(bVerticalWriting && !bTopToBottom ? aAdjustTranslate.getY() + aOutlinerScale.getY() : aAdjustTranslate.getY());
-    const basegfx::B2DTuple aAdjOffset(fStartInX, fStartInY);
-    basegfx::B2DHomMatrix aNewTransformA(basegfx::utils::createTranslateB2DHomMatrix(aAdjOffset.getX(), aAdjOffset.getY()));
+    basegfx::B2DHomMatrix aNewTransformA(basegfx::utils::createTranslateB2DHomMatrix(fStartInX, fStartInY));
 
     // Apply the camera rotation. It have to be applied after adjustment of
     // the text (top, bottom, center, left, right).


More information about the Libreoffice-commits mailing list