diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 09:16:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:34 +0000 |
commit | c3666f94792777f856a794b205c07191ff33b39b (patch) | |
tree | 0a33acafc7dbe0fa8e8bb391c8e5bcfbbe0cf98d /sc | |
parent | a1b37b675e512aebf5a8b9d610cd39ebedb1c1dc (diff) |
coverity#703982 Unchecked return value
Change-Id: Ibcea87db4fcb9d8cd9d1370ea314ffbc7a8acc64
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 082ea900f61c..d7a208b0dd9d 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -2755,9 +2755,11 @@ bool ScTable::SetRowHeightRange( SCROW nStartRow, SCROW nEndRow, sal_uInt16 nNew if (bSingle) { ScFlatUInt16RowSegments::RangeData aData; - mpRowHeights->getRangeData(nStartRow, aData); - if (nNewHeight == aData.mnValue && nEndRow <= aData.mnRow2) + if (mpRowHeights->getRangeData(nStartRow, aData) && + nNewHeight == aData.mnValue && nEndRow <= aData.mnRow2) + { bSingle = false; // no difference in this range + } } if (bSingle) { |