Kaydet (Commit) 6fed9d0b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1241199 Unchecked dynamic_cast

Change-Id: Id6bbd9d6922ee6fda7e9eb0945c27ed5a902d05b
üst 8f69c7a1
...@@ -699,7 +699,7 @@ void SvxTableController::onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs ) ...@@ -699,7 +699,7 @@ void SvxTableController::onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs )
for( nSpanInfoRow = nPropSrcRow - 1; nSpanInfoRow >= 0; --nSpanInfoRow ) for( nSpanInfoRow = nPropSrcRow - 1; nSpanInfoRow >= 0; --nSpanInfoRow )
{ {
CellRef xMergeInfoCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nSpanInfoRow ).get() ) ); CellRef xMergeInfoCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nSpanInfoRow ).get() ) );
if( !xMergeInfoCell->isMerged() ) if (xMergeInfoCell.is() && !xMergeInfoCell->isMerged())
{ {
nColSpan = xMergeInfoCell->getColumnSpan(); nColSpan = xMergeInfoCell->getColumnSpan();
nRowSpan = xMergeInfoCell->getRowSpan(); nRowSpan = xMergeInfoCell->getRowSpan();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment