[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - oox/source

Muthu Subramanian sumuthu at suse.com
Wed Sep 11 05:04:40 PDT 2013


 oox/source/drawingml/chart/axisconverter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit cb4cd3e302783ec8345a899be81a2bd7c0bf02ca
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Mon Sep 9 21:05:42 2013 +0530

    n#834722: Chart shown flipped.
    
    Auto and manual axis positioning seems to cause a problem.
    Needs to be tested with more charts.

diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx
index bade987..ba01c52 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 );


More information about the Libreoffice-commits mailing list