[Libreoffice-commits] core.git: oox/source
Muthu Subramanian
sumuthu at suse.com
Thu Mar 28 07:29:28 PDT 2013
oox/source/drawingml/chart/datasourcecontext.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 38e5096b1c3d21a2b4d7588f3c846f1f45a7a3e0
Author: Muthu Subramanian <sumuthu at suse.com>
Date: Thu Mar 28 20:12:54 2013 +0530
n#810508: Fixes import of Scatternet and Bubble charts.
xVal needs to be imported as double and not as strings.
diff --git a/oox/source/drawingml/chart/datasourcecontext.cxx b/oox/source/drawingml/chart/datasourcecontext.cxx
index 0620b6a..f4f6b95 100644
--- a/oox/source/drawingml/chart/datasourcecontext.cxx
+++ b/oox/source/drawingml/chart/datasourcecontext.cxx
@@ -96,10 +96,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();
More information about the Libreoffice-commits
mailing list