summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 15:10:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 15:10:58 +0000
commit64e439edc097f23d34a859125fd00501aa6746fb (patch)
tree5f82a5bfc7ea207fcf094f5ea7a6b8f1beb433ea /starmath
parent8f91c4ad5d8e967e125c55e9947177493117ee24 (diff)
coverity#735495 logically dead code
Change-Id: I8f2bc4ebd4d7c476495c5f1d92e8536c7be50c51
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);