[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source
Regina Henschel
regina at apache.org
Mon Jun 15 15:08:25 PDT 2015
starmath/source/mathmlimport.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 16278da3713c7afb504c1e8fccd18268ece2ae64
Author: Regina Henschel <regina at apache.org>
Date: Mon Jun 15 20:35:27 2015 +0000
#i126367 existing command text is repeated when insert formula
Patch by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 5f927be4..41be3f4 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -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();
More information about the Libreoffice-commits
mailing list