summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2013-09-11 21:41:43 +0530
committerAndras Timar <andras.timar@collabora.com>2013-09-22 09:29:13 -0700
commit63eafc88befd398e0ee94a94aff945712a179d48 (patch)
tree0d08d002044e7916a7f6ff7006a7d7fd31a4cfb2
parentc614f96c7f9248c97d4e539fc3ad5b32d40f1674 (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 ba01c52e2c76..7feb6c921603 100644
--- a/oox/source/drawingml/chart/axisconverter.cxx
+++ b/oox/source/drawingml/chart/axisconverter.cxx
@@ -307,10 +307,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 );
}