Kaydet (Commit) 0ffc74d6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704952 Unchecked dynamic_cast

Change-Id: If49ed05f54a9c89107d3a2836386c111966d0f54
üst fb58002b
...@@ -2635,10 +2635,9 @@ the last cell they can be added. ...@@ -2635,10 +2635,9 @@ the last cell they can be added.
bool SwChartDataSequence::ExtendTo( bool bExtendCol, bool SwChartDataSequence::ExtendTo( bool bExtendCol,
sal_Int32 nFirstNew, sal_Int32 nCount ) sal_Int32 nFirstNew, sal_Int32 nCount )
{ {
bool bChanged = false;
SwUnoTableCrsr* pUnoTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pTblCrsr); SwUnoTableCrsr* pUnoTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pTblCrsr);
//pUnoTblCrsr->MakeBoxSels(); if (!pUnoTblCrsr)
return false;
const SwStartNode *pStartNd = 0; const SwStartNode *pStartNd = 0;
const SwTableBox *pStartBox = 0; const SwTableBox *pStartBox = 0;
...@@ -2665,6 +2664,7 @@ bool SwChartDataSequence::ExtendTo( bool bExtendCol, ...@@ -2665,6 +2664,7 @@ bool SwChartDataSequence::ExtendTo( bool bExtendCol,
SwRangeDescriptor aDesc; SwRangeDescriptor aDesc;
FillRangeDescriptor( aDesc, aCellRange ); FillRangeDescriptor( aDesc, aCellRange );
bool bChanged = false;
OUString aNewStartCell; OUString aNewStartCell;
OUString aNewEndCell; OUString aNewEndCell;
if (bExtendCol && aDesc.nBottom + 1 == nFirstNew) if (bExtendCol && aDesc.nBottom + 1 == nFirstNew)
......
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