summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-07-17 17:49:12 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-07-17 23:41:53 +0400
commite3b220a5ae82543ce7322ce7ab516dd3f5bdf8b0 (patch)
tree95fc521748ab1d1425d5513f4c7d21a61c115631
parent78e8911d25ff33892fd3121b3f0a8df6a6439d72 (diff)
mathmlimport: do not remove first and last braces
they are not always matching: {a + c} over {b + d} Change-Id: Ie14d65966dc7014b6582f72a998546e0a256e94c
-rw-r--r--starmath/source/mathmlimport.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 9b0ad7fee205..0d38ec51db5e 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -574,12 +574,6 @@ void SmXMLImport::endDocument(void)
aText = pDocShell->GetText();
pTree->CreateTextFromNode(aText);
aText = comphelper::string::stripEnd(aText, ' ');
- if ((aText.GetChar(0) == '{') &&
- (aText.GetChar(aText.Len()-1) == '}'))
- {
- aText.Erase(0,1);
- aText.Erase(aText.Len()-1,1);
- }
}
pDocShell->SetText( String() );