summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2013-09-11 21:41:43 +0530
committerAndras Timar <andras.timar@collabora.com>2014-02-24 08:01:48 -0800
commitcc3f81394007f3ebc5cc2452a2fe0f7131881bcd (patch)
tree7c1104939a4734f0d3b05608968bf56a93faff72
parentf82d52f43d88f33dc7c4e365cba206e223e0b2b9 (diff)
n#834720: Labels wrongly interpreted as dates.
If the numFormat is available we should probably use that.
-rw-r--r--oox/source/drawingml/chart/axisconverter.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx
index 1f725d641b4b..886b25298c35 100644
--- a/oox/source/drawingml/chart/axisconverter.cxx
+++ b/oox/source/drawingml/chart/axisconverter.cxx
@@ -310,10 +310,8 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo
{
bool bPercent = false;
if( mrModel.maNumberFormat.maFormatCode.indexOf('%') >= 0)
- {
- mrModel.maNumberFormat.mbSourceLinked = false;
bPercent = true;
- }
+ mrModel.maNumberFormat.mbSourceLinked = false;
getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat, bPercent );
}