diff options
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index 430945a0fd96..98adff6e93ef 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -1335,7 +1335,11 @@ void SAL_CALL VCartesianAxis::createLabels() if(apTickIter.get()) { if(nTextLevel==0) + { nScreenDistanceBetweenTicks = TickmarkHelper_2D::getTickScreenDistance( *apTickIter.get() ); + if( nTextLevelCount>1 ) + nScreenDistanceBetweenTicks*=2; //the above used tick iter does contain also the sub ticks -> thus the given distance is only the half + } AxisLabelProperties aCopy(m_aAxisLabelProperties); aCopy.bRhythmIsFix = true; |