diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 14:12:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 17:19:36 +0100 |
commit | 763a0d8ade51685b1138377a022a36fde99acc15 (patch) | |
tree | 50637a252b62f4835c3f2469163edfccc3510aca /svx/source/table | |
parent | 5c6d26753d758c2173f21a14283bdafa54063b63 (diff) |
coverity#1241199 Unchecked dynamic_cast
Change-Id: I53ace3f34036f2c78201aea7fb4a4a2e7c750654
Diffstat (limited to 'svx/source/table')
-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 4d6b368045a7..2e7bf185d9c2 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -595,7 +595,7 @@ void SvxTableController::onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs ) for( nSpanInfoCol = nPropSrcCol - 1; nSpanInfoCol >= 0; --nSpanInfoCol ) { CellRef xMergeInfoCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nSpanInfoCol, nRow ).get() ) ); - if( !xMergeInfoCell->isMerged() ) + if (xMergeInfoCell.is() && !xMergeInfoCell->isMerged()) { nRowSpan = xMergeInfoCell->getRowSpan(); nColSpan = xMergeInfoCell->getColumnSpan(); |