summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 9288879bbe3b..18f9a8462b21 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -882,7 +882,7 @@ bool SmCursor::InsertRow() {
}
}
//If we're in the context of a matrix
- else if(pMatrix) {
+ else {
//Find position after insert and patch the list
PosAfterInsert = PatchLineList(pLineList, it);
//Move other children
@@ -898,8 +898,7 @@ bool SmCursor::InsertRow() {
pMatrix->SetSubNode(i, pNewLine);
}
pMatrix->SetRowCol(rows + 1, cols);
- } else
- SAL_WARN("starmath", "We must be either the context of a table or matrix!");
+ }
//Finish editing
FinishEdit(pLineList, pLineParent, nParentIndex, PosAfterInsert);