summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/source/mathmlimport.cxx4
-rw-r--r--starmath/source/view.cxx2
2 files changed, 1 insertions, 5 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 4d1f95ec91b3..a7133dfe5584 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -557,12 +557,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 = comphelper::string::stripEnd(aText, ' ');
}
- pDocShell->SetText( String() );
// Convert symbol names
SmParser &rParser = pDocShell->GetParser();
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index d3ffcfea2aac..e0fd8d43a35a 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1519,9 +1519,7 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
if (pEditWin)
pEditWin->InsertText( aText );
else
- {
SAL_WARN( "starmath", "EditWindow missing" );
- }
pDoc->Parse();
pDoc->SetModified(true);