summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-26 09:16:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-26 12:14:34 +0000
commitc3666f94792777f856a794b205c07191ff33b39b (patch)
tree0a33acafc7dbe0fa8e8bb391c8e5bcfbbe0cf98d /sc
parenta1b37b675e512aebf5a8b9d610cd39ebedb1c1dc (diff)
coverity#703982 Unchecked return value
Change-Id: Ibcea87db4fcb9d8cd9d1370ea314ffbc7a8acc64
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx6
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)
{