Kaydet (Commit) e3b220a5 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

mathmlimport: do not remove first and last braces

they are not always matching: {a + c} over {b + d}

Change-Id: Ie14d65966dc7014b6582f72a998546e0a256e94c
üst 78e8911d
......@@ -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() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment