diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-04-25 17:37:32 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2013-04-25 17:39:49 +0530 |
commit | 8c51484a973c9448530f76771b19bed858a3b240 (patch) | |
tree | 8b08af4fdaf733dd309aa3367e2daefdb42dc030 /oox | |
parent | 57a14ea0bed679c4b120c0371ab5316faf7c883f (diff) |
n#813291: [PPTX] Axis Labels with percentage.
Added the check only in the Axis Labels import.
Maybe this check can be moved to convertNumberFormat()
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/chart/axisconverter.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx index 1ad07f53776d..4da69a8bbdff 100644 --- a/oox/source/drawingml/chart/axisconverter.cxx +++ b/oox/source/drawingml/chart/axisconverter.cxx @@ -305,9 +305,13 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo if( (aScaleData.AxisType == cssc2::AxisType::REALNUMBER) || (aScaleData.AxisType == cssc2::AxisType::PERCENT) ) { + bool bPercent = false; if( mrModel.maNumberFormat.maFormatCode.indexOf('%') >= 0) + { mrModel.maNumberFormat.mbSourceLinked = false; - getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat ); + bPercent = true; + } + getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat, bPercent ); } // position of crossing axis ------------------------------------------ |