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

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Feb 20 06:07:09 UTC 2017


 chart2/source/view/main/PlottingPositionHelper.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 63cb2a83d5c9b6bd7e689c0715f632ffeac0ceea
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Feb 19 22:31:15 2017 +0100

    cppcheck: redundantAssignment
    
    since commit ce92b5da976122a9120fbb499f7a823ed67a4d01
    
    Change-Id: I27b4c8337ad229c2ad93e294c9159baa3c2567b8
    Reviewed-on: https://gerrit.libreoffice.org/34439
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/chart2/source/view/main/PlottingPositionHelper.cxx b/chart2/source/view/main/PlottingPositionHelper.cxx
index 02ada77..a813117 100644
--- a/chart2/source/view/main/PlottingPositionHelper.cxx
+++ b/chart2/source/view/main/PlottingPositionHelper.cxx
@@ -382,14 +382,11 @@ void PolarPlottingPositionHelper::setScales( const std::vector< ExplicitScaleDat
 
     double fTranslateX = fTranslate;
     double fTranslateY = fTranslate;
-    double fTranslateZ = fTranslate;
+    double fTranslateZ = fTranslateLogicZ;
 
     double fScaleX = fScale;
     double fScaleY = fScale;
-    double fScaleZ = fScale;
-
-    fTranslateZ = fTranslateLogicZ;
-    fScaleZ = fScaleLogicZ;
+    double fScaleZ = fScaleLogicZ;
 
     aRet.translate(fTranslateX, fTranslateY, fTranslateZ);//x first
     aRet.scale(fScaleX, fScaleY, fScaleZ);//x first


More information about the Libreoffice-commits mailing list