diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-09-09 21:05:42 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-09-11 05:04:48 -0700 |
commit | cb4cd3e302783ec8345a899be81a2bd7c0bf02ca (patch) | |
tree | adc7ccf53f55fcb4af4cdae81788e01bcfdb2b5f | |
parent | 64915a1220aac3f2ce18bf3ac2aac192c7ecebb2 (diff) |
n#834722: Chart shown flipped.
Auto and manual axis positioning seems to cause a problem.
Needs to be tested with more charts.
-rw-r--r-- | oox/source/drawingml/chart/axisconverter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx index bade987f3c00..ba01c52e2c76 100644 --- a/oox/source/drawingml/chart/axisconverter.cxx +++ b/oox/source/drawingml/chart/axisconverter.cxx @@ -324,7 +324,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 ); |