Skip to content

Commit

Permalink
#i126367 existing command text is repeated when insert formula
Browse files Browse the repository at this point in the history
Patch by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1685665 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Regina Henschel committed Jun 15, 2015
1 parent 3d56746 commit 7db8e69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/starmath/source/mathmlimport.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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) == '{') &&
Expand All @@ -588,7 +587,6 @@ void SmXMLImport::endDocument(void)
aText.Erase(aText.Len()-1,1);
}
}
pDocShell->SetText( String() );

// Convert symbol names
SmParser &rParser = pDocShell->GetParser();
Expand Down

0 comments on commit 7db8e69

Please sign in to comment.