summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/source/edit.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 203740a7b3fa..f156ee6762b8 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -1015,7 +1015,6 @@ void SmEditWindow::InsertText(const OUString& rText)
ESelection aSelection = pEditView->GetSelection();
OUString aCurrentFormula = pEditView->GetEditEngine()->GetText();
sal_Int32 nStartIndex = 0;
- sal_Int32 nEndIndex = 0;
// get the start position (when we get a multi line formula)
for (sal_Int32 nParaPos = 0; nParaPos < aSelection.nStartPara; nParaPos++)
@@ -1023,12 +1022,6 @@ void SmEditWindow::InsertText(const OUString& rText)
nStartIndex += aSelection.nStartPos;
- // get the end position (when we get a multi line formula)
- for (sal_Int32 nParaPos = 0; nParaPos < aSelection.nEndPara; nParaPos++)
- nEndIndex = aCurrentFormula.indexOf("\n", nEndIndex) + 1;
-
- nEndIndex += aSelection.nEndPos;
-
// TODO: unify this function with the InsertCommand: The do the same thing for different
// callers
OUString string(rText);