summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-01-19 21:29:03 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-20 11:58:11 +0100
commitab9aec1c97a69fb0d8df6f04eefdd02291c974cf (patch)
tree930015e0c27f35f3d38c5b7a6ef660b47d3f0413 /sc/source/filter/oox
parent95ae9eceb944ec71b4f99b4446d517b4cb9fd6c4 (diff)
Check id in outer loop
Change-Id: I24ecf429d26c19823cd76128d2b5e0ec3bdf82c7 Reviewed-on: https://gerrit.libreoffice.org/66639 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx
index 1051399d91d6..9a0240ec631d 100644
--- a/sc/source/filter/oox/sheetdatabuffer.cxx
+++ b/sc/source/filter/oox/sheetdatabuffer.cxx
@@ -428,12 +428,12 @@ void SheetDataBuffer::finalizeImport()
for ( std::map< sal_Int32, std::vector< ValueRange > >::iterator it = maXfIdRowRangeList.begin(), it_end = maXfIdRowRangeList.end(); it != it_end; ++it )
{
+ if ( it->first == -1 ) // it's a dud skip it
+ continue;
AddressConverter& rAddrConv = getAddressConverter();
// get all row ranges for id
for ( std::vector< ValueRange >::iterator rangeIter = it->second.begin(), rangeIter_end = it->second.end(); rangeIter != rangeIter_end; ++rangeIter )
{
- if ( it->first == -1 ) // it's a dud skip it
- continue;
ScRange aRange( 0, rangeIter->mnFirst, getSheetIndex(),
rAddrConv.getMaxApiAddress().Col(), rangeIter->mnLast, getSheetIndex() );