summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorIngrid Halama [iha] <Ingrid.Halama@oracle.com>2010-12-09 18:32:46 +0100
committerIngrid Halama [iha] <Ingrid.Halama@oracle.com>2010-12-09 18:32:46 +0100
commit928cbecafc2f64e4a38bb91b4ec6a9b6093f0728 (patch)
tree7795f902456cc42e8bf358e9b8241ffa06b9ac49 /chart2/source/tools
parent63ef1c015c97d5c4cda0b8be76654a3e08d96324 (diff)
chart46: #i25706# implement date axis - remove explicit scaling in case of auto
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/AxisHelper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index 506c0a96295a..ec437cf7fd34 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -137,7 +137,10 @@ chart2::ScaleData AxisHelper::getDateCheckedScale( const Reference< chart2::XAxi
void AxisHelper::checkDateAxis( chart2::ScaleData& rScale, ExplicitCategoriesProvider* pExplicitCategoriesProvider, bool bChartTypeAllowsDateAxis )
{
if( rScale.AutoDateAxis && rScale.AxisType == AxisType::CATEGORY && bChartTypeAllowsDateAxis )
+ {
rScale.AxisType = AxisType::DATE;
+ removeExplicitScaling( rScale );
+ }
if( rScale.AxisType == AxisType::DATE && (!pExplicitCategoriesProvider || !pExplicitCategoriesProvider->isDateAxis()) )
{
rScale.AxisType = AxisType::CATEGORY;