summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2013-04-25 17:37:32 +0530
committerMuthu Subramanian <sumuthu@suse.com>2013-04-25 17:41:06 +0530
commit976a85dc20b0f274d0f51e9eb83e08b4763bdd2a (patch)
tree00a6277b7fc880a23cd5eabd23d2ad76ca854912 /oox/source
parentabd0ed222788077b66d92b84f0918309aa58d865 (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/source')
-rw-r--r--oox/source/drawingml/chart/axisconverter.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx
index bf4b4f87a667..bade987f3c00 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 ------------------------------------------