diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 11:20:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 12:50:22 +0100 |
commit | 4525355aeeb56826717c3a59dece690b4f783dce (patch) | |
tree | 79abc30f5c0ed19676d50ad12068fbf899b27e03 | |
parent | 4bacf63db7cccd6be6497ac14365cbcf9b7b1429 (diff) |
coverity#1241199 Unchecked dynamic_cast
Change-Id: I8522084c4b6036d63b144af70bf25312f897ff7d
-rw-r--r-- | svx/source/table/tablecontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 2e7bf185d9c2..980b72874a57 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -574,7 +574,7 @@ void SvxTableController::onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs ) CellRef xSourceCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nPropSrcCol, nRow ).get() ) ); // When we insert new COLUMNs, we want to copy ROW spans. - if( nRowSpan == 0 ) + if (xSourceCell.is() && nRowSpan == 0) { // we are not in a span yet. Let's find out if the current cell is in a span. sal_Int32 nColSpan = sal_Int32(); |