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

Stephan Bergmann sbergman at redhat.com
Fri Jul 1 06:54:18 UTC 2016


 chart2/source/view/charttypes/BubbleChart.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit bfff963fefa930839171c4233699339979f3ceec
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jul 1 08:53:14 2016 +0200

    clang-analyzer-deadcode.DeadStores
    
    ...after 0f17e343306fd457c542067c09242ddd04ca39e9 "loplugin:singlevalfields in
    chart2"
    
    Change-Id: I111d6a0eb5380d9559799db348deb43594f90630

diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx
index 2f8f9c7..df523dd 100644
--- a/chart2/source/view/charttypes/BubbleChart.cxx
+++ b/chart2/source/view/charttypes/BubbleChart.cxx
@@ -130,10 +130,8 @@ drawing::Direction3D BubbleChart::transformToScreenBubbleSize( double fLogicSize
 
     double fMaxSize = m_fMaxLogicBubbleSize;
 
-    double fMaxRadius = fMaxSize;
-    double fRaduis = fLogicSize;
-    fMaxRadius = sqrt( fMaxSize / F_PI );
-    fRaduis = sqrt( fLogicSize / F_PI );
+    double fMaxRadius = sqrt( fMaxSize / F_PI );
+    double fRaduis = sqrt( fLogicSize / F_PI );
 
     aRet.DirectionX = m_fBubbleSizeScaling * m_fBubbleSizeFactorToScreen * fRaduis / fMaxRadius;
     aRet.DirectionY = aRet.DirectionX;


More information about the Libreoffice-commits mailing list