diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-21 17:18:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-22 14:36:46 +0200 |
commit | ac854a4ccfcdcd75e93fbf629b6191821099b0a3 (patch) | |
tree | 2250c6556e1ce180828f23ee63a10c09882b4f5d /sc/source | |
parent | e913727c7ee3af0bb4031c6829abfb3373306492 (diff) |
crashtesting: failure on export of ooo40197-1.sxc to xlsx
Change-Id: I8e3122045fbf22d4ec0b6960d6268bb5f429f600
Reviewed-on: https://gerrit.libreoffice.org/71042
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dociter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index ec81363846f2..be38db769be4 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -1122,7 +1122,8 @@ bool ScQueryCellIterator::GetThis() { do { - if ( ++nCol > mpParam->nCol2 ) + ++nCol; + if (nCol > mpParam->nCol2 || nCol >= pDoc->maTabs[nTab]->GetAllocatedColumnsCount()) return false; // Over and out if ( bAdvanceQuery ) { |