Author: regina
Date: Mon Jun 15 20:35:27 2015
New Revision: 1685665
URL: http://svn.apache.org/r1685665
Log:
#i126367 existing command text is repeated when insert formula
Patch by: Marcos Paulo de Souza <[email protected]>
Modified:
openoffice/trunk/main/starmath/source/mathmlimport.cxx
Modified: openoffice/trunk/main/starmath/source/mathmlimport.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/starmath/source/mathmlimport.cxx?rev=1685665&r1=1685664&r2=1685665&view=diff
==============================================================================
--- openoffice/trunk/main/starmath/source/mathmlimport.cxx (original)
+++ openoffice/trunk/main/starmath/source/mathmlimport.cxx Mon Jun 15 20:35:27
2015
@@ -577,8 +577,7 @@ void SmXMLImport::endDocument(void)
pDocShell->SetFormulaTree(pTree);
if (0 == aText.Len()) //If we picked up no annotation text
{
- //Make up some editable text
- aText = pDocShell->GetText();
+ // Get text from imported formula
pTree->CreateTextFromNode(aText);
aText.EraseTrailingChars();
if ((aText.GetChar(0) == '{') &&
@@ -588,7 +587,6 @@ void SmXMLImport::endDocument(void)
aText.Erase(aText.Len()-1,1);
}
}
- pDocShell->SetText( String() );
// Convert symbol names
SmParser &rParser = pDocShell->GetParser();