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

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 24 13:33:18 UTC 2020


 chart2/source/view/axes/VCartesianAxis.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 85af9e1d7a5820b989b004594e5462093b300021
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Thu Sep 24 13:05:20 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Sep 24 15:32:34 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: Icf1d8dae0f357aabeeda70f8c059e4cbf785df89
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103309
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index 1c62bfb93903..44e64973e0b8 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -1631,7 +1631,7 @@ void VCartesianAxis::doStaggeringOfLabels( const AxisLabelProperties& rAxisLabel
     if( isComplexCategoryAxis() )
     {
         sal_Int32 nTextLevelCount = getTextLevelCount();
-        B2DVector aCummulatedLabelsDistance(0,0);
+        B2DVector aCumulatedLabelsDistance(0,0);
         for( sal_Int32 nTextLevel=0; nTextLevel<nTextLevelCount; nTextLevel++ )
         {
             std::unique_ptr<TickIter> apTickIter(createLabelTickIterator(nTextLevel));
@@ -1640,14 +1640,14 @@ void VCartesianAxis::doStaggeringOfLabels( const AxisLabelProperties& rAxisLabel
                 double fRotationAngleDegree = m_aAxisLabelProperties.fRotationAngleDegree;
                 if( nTextLevel>0 )
                 {
-                    lcl_shiftLabels(*apTickIter, aCummulatedLabelsDistance);
+                    lcl_shiftLabels(*apTickIter, aCumulatedLabelsDistance);
                     //multilevel labels: 0 or 90 by default
                     if( m_aAxisProperties.m_bSwapXAndY )
                         fRotationAngleDegree = 90.0;
                     else
                         fRotationAngleDegree = 0.0;
                 }
-                aCummulatedLabelsDistance += lcl_getLabelsDistance(
+                aCumulatedLabelsDistance += lcl_getLabelsDistance(
                     *apTickIter, pTickFactory2D->getDistanceAxisTickToText(m_aAxisProperties),
                     fRotationAngleDegree);
             }


More information about the Libreoffice-commits mailing list