diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-20 21:25:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-21 14:51:28 +0200 |
commit | c81fe7f7e4b416f818d7dfd8e141bccebce37a16 (patch) | |
tree | a5fbb74e35cd455a73158eb8c1ce64fc781591a5 /sc/source | |
parent | 84e56a1ccfb190ce28352f946fa38999491b3086 (diff) |
crashtesting: crash seen on import of forum-mso-en4-602306.xlsx
Change-Id: Ib8bd453483c72382330b4c960cdbe735bdb97eac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166374
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/PivotTableFormatOutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/PivotTableFormatOutput.cxx b/sc/source/core/data/PivotTableFormatOutput.cxx index 575fd5e77508..83bf865573a4 100644 --- a/sc/source/core/data/PivotTableFormatOutput.cxx +++ b/sc/source/core/data/PivotTableFormatOutput.cxx @@ -98,7 +98,7 @@ void initFormatOutputField(size_t nSelectionIndex, std::vector<FormatOutputField { if (!rSelection.nIndices.empty() && rSelection.nField == rOutputField.nDimension) { - if (rSelection.nIndices.size() > 1) + if (rSelection.nIndices.size() > nSelectionIndex) rOutputField.nIndex = rSelection.nIndices[nSelectionIndex]; else rOutputField.nIndex = rSelection.nIndices[0]; |