diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2020-09-24 13:05:20 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-09-24 15:32:34 +0200 |
commit | 85af9e1d7a5820b989b004594e5462093b300021 (patch) | |
tree | 9186c07b5048a234a7bc6bc124032e79641fbf54 /chart2/source | |
parent | 07451fb643b3c461054426d0f273c0f53d867739 (diff) |
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@collabora.com>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |