diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 15:10:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 15:10:58 +0000 |
commit | 64e439edc097f23d34a859125fd00501aa6746fb (patch) | |
tree | 5f82a5bfc7ea207fcf094f5ea7a6b8f1beb433ea | |
parent | 8f91c4ad5d8e967e125c55e9947177493117ee24 (diff) |
coverity#735495 logically dead code
Change-Id: I8f2bc4ebd4d7c476495c5f1d92e8536c7be50c51
-rw-r--r-- | starmath/source/cursor.cxx | 5 |
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); |