From 2d422d868a717adf735ef45a6bf5e4af0efb1a0c Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 27 Jul 2012 16:47:07 +0200 Subject: SmOoxmlImport::handleR: escape brackets in math runs Also remove the previous escaping that took care of RTF only. Change-Id: Ie9a019912f83a3f56ef52429855cd72cf2c8f463 --- starmath/source/ooxmlimport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 0ca2d0573a77..12e20a6f2ac0 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -597,7 +597,7 @@ OUString SmOoxmlImport::handleR() } } stream.ensureClosingTag( M_TOKEN( r )); - return text; + return text.replaceAll("{", "\\{").replaceAll("}", "\\}"); } OUString SmOoxmlImport::handleRad() -- cgit