diff options
-rw-r--r-- | sc/source/ui/unoobj/PivotTableDataProvider.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index abbe7e2265fd..94bf491c2e13 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -618,7 +618,7 @@ PivotTableDataProvider::assignLabelsToDataSequence(size_t nIndex) { aLabel = ScResId(STR_PIVOT_TOTAL); } - else + else if (nIndex < m_aLabels.size()) { for (ValueAndFormat const & rItem : m_aLabels[nIndex]) { |