From ce48c0981212b347ace49bab09ac242d2ecff41d Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Mon, 9 Sep 2013 21:05:42 +0530 Subject: [PATCH] n#834722: Chart shown flipped. Auto and manual axis positioning seems to cause a problem. Needs to be tested with more charts. --- oox/source/drawingml/chart/axisconverter.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx index 1f725d641b4b..dfc08b8578db 100644 --- a/oox/source/drawingml/chart/axisconverter.cxx +++ b/oox/source/drawingml/chart/axisconverter.cxx @@ -327,7 +327,8 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo case XML_max: eAxisPos = cssc::ChartAxisPosition_END; break; case XML_autoZero: eAxisPos = cssc::ChartAxisPosition_VALUE; break; } - aAxisProp.setProperty( PROP_CrossoverPosition, eAxisPos ); + if( !mrModel.mbAuto ) + aAxisProp.setProperty( PROP_CrossoverPosition, eAxisPos ); // calculate automatic origin depending on scaling mode of crossing axis bool bCrossingLogScale = pCrossingAxis && lclIsLogarithmicScale( *pCrossingAxis );