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
(cherry picked from commit 7db8e69)
  • Loading branch information
Regina Henschel authored and Pilot-Pirx committed Oct 8, 2023
1 parent 4d0df65 commit 79ee02b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/starmath/source/mathmlimport.cxx
Expand Up @@ -577,12 +577,10 @@ 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();
}
pDocShell->SetText( String() );

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

0 comments on commit 79ee02b

Please sign in to comment.