summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2013-03-28 20:12:54 +0530
committerMuthu Subramanian <sumuthu@suse.com>2013-03-30 13:00:28 +0530
commit2b11059578b624e76745a20eaa53e848abd0a194 (patch)
tree734f5425edecf597d66aad6b151ce89822e0687a
parent551377c9637b9dbcfd70ed144043b82c89159e99 (diff)
n#810508: Fixes import of Scatternet and Bubble charts.
xVal needs to be imported as double and not as strings.
-rw-r--r--oox/source/drawingml/chart/datasourcecontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/chart/datasourcecontext.cxx b/oox/source/drawingml/chart/datasourcecontext.cxx
index 087e6fd57abc..9be8b0a9da36 100644
--- a/oox/source/drawingml/chart/datasourcecontext.cxx
+++ b/oox/source/drawingml/chart/datasourcecontext.cxx
@@ -106,10 +106,10 @@ void DoubleSequenceContext::onCharacters( const OUString& rChars )
{
/* Import categories as String even though it could
* be values.
+ * n#810508: xVal needs to be imported as double
* TODO: NumberFormat conversion, remove the check then.
*/
- if( isParentElement( C_TOKEN( cat ), 4 ) ||
- isParentElement( C_TOKEN( xVal ), 4 ) )
+ if( isParentElement( C_TOKEN( cat ), 4 ) )
mrModel.maData[ mnPtIndex ] <<= rChars;
else
mrModel.maData[ mnPtIndex ] <<= rChars.toDouble();