From 4027bc476a1df9df1924447795ddc2d8b7744e20 Mon Sep 17 00:00:00 2001 From: sushil_shinde Date: Fri, 10 Oct 2014 11:25:42 +0530 Subject: fdo#84647 : Fixed default value for TickLableSkip value. 1. 'TextCanOverlap' property was stored as false if TickLableSkip is not equal to one. 2. For OOXML charts TickLableSkip can be between 1 to 999999999. 3. We can not apply zero or less than zero value to TickLableSkip. ( As per specification) 4. In axis model default value for TickLableSkip was zero which is incorrect. 5. Added unit test to check 'TextCanOverlap' property for chart. Change-Id: Ib3104b1d932f6e9376c149eabb201c8e9ad23da9 Reviewed-on: https://gerrit.libreoffice.org/11901 Reviewed-by: Kohei Yoshida Tested-by: Kohei Yoshida --- oox/source/drawingml/chart/axismodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox/source') diff --git a/oox/source/drawingml/chart/axismodel.cxx b/oox/source/drawingml/chart/axismodel.cxx index d4163bca151f..cbd66b789a2a 100644 --- a/oox/source/drawingml/chart/axismodel.cxx +++ b/oox/source/drawingml/chart/axismodel.cxx @@ -46,7 +46,7 @@ AxisModel::AxisModel( sal_Int32 nTypeId ) : mnMinorTimeUnit( XML_days ), mnOrientation( XML_minMax ), mnTickLabelPos( XML_nextTo ), - mnTickLabelSkip( 0 ), + mnTickLabelSkip( 1 ), mnTickMarkSkip( 0 ), mnTypeId( nTypeId ), mbAuto( false ), -- cgit