summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-01-22 18:11:38 +0100
committerIngrid Halama <iha@openoffice.org>2010-01-22 18:11:38 +0100
commit93cc3a3a71017b0a2f46725cef0ba21d9e194afd (patch)
tree154f3611b6f4ebd0e7b8ea2b695ca993fee9695e /chart2/source
parenta1cbee0ff69113cd1530c894f97de2159a32be34 (diff)
chartmultiline: #i82971# complex categories (part5 - correct limiting space causing text break)
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx4
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;