From d7017dbc1754c3b6f27501d3eae997a39f62daf8 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 1 Dec 2011 15:22:28 +0100 Subject: append text when reading from xml The xml parser apparently can call the characters() callback several times for one text content (if it needs to un-escape maybe?), so append, otherwise some content would be overwritten. --- oox/source/mathml/importutils.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/mathml/importutils.cxx b/oox/source/mathml/importutils.cxx index 912f0f65be1c..d09eebd4cb2f 100644 --- a/oox/source/mathml/importutils.cxx +++ b/oox/source/mathml/importutils.cxx @@ -354,7 +354,7 @@ void XmlStreamBuilder::appendClosingTag( int token ) void XmlStreamBuilder::appendCharacters( const rtl::OUString& chars ) { assert( !tags.empty()); - tags.back().text = chars; + tags.back().text += chars; } } // namespace -- cgit