diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-15 10:42:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-15 13:54:08 +0200 |
commit | 5779b4966954d845f3c526c340bdee8c6a92ef95 (patch) | |
tree | 3b1cc098c80ca069b1b0e81245850f9b51e654b3 | |
parent | f93583f8694dbb626e511cf24ae366dce725e564 (diff) |
tdf#115086 crash in assignLabelsToDataSequence
since...
commit c45358e928b9b9419bba10a0fcb661696cb7647a
Date: Mon Apr 24 00:09:08 2017 +0200
preserve "Total" label on round-trip, remove code duplication
Change-Id: I83ed20e1cab8d67f2f5aedcaf862756d9548bf9f
Reviewed-on: https://gerrit.libreoffice.org/59060
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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]) { |