[Libreoffice-commits] core.git: oox/source

Muthu Subramanian sumuthu at suse.com
Mon Sep 9 08:11:45 PDT 2013


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

New commits:
commit ce48c0981212b347ace49bab09ac242d2ecff41d
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 1f725d6..dfc08b8 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 );


More information about the Libreoffice-commits mailing list