summaryrefslogtreecommitdiff
path: root/svx/source/table
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-25 14:12:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-25 17:19:36 +0100
commit763a0d8ade51685b1138377a022a36fde99acc15 (patch)
tree50637a252b62f4835c3f2469163edfccc3510aca /svx/source/table
parent5c6d26753d758c2173f21a14283bdafa54063b63 (diff)
coverity#1241199 Unchecked dynamic_cast
Change-Id: I53ace3f34036f2c78201aea7fb4a4a2e7c750654
Diffstat (limited to 'svx/source/table')
-rw-r--r--svx/source/table/tablecontroller.cxx2
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();