From 582c9949d53ac4845bdea50b06f1a47d948b9fb9 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 1 May 2017 22:20:03 +0200 Subject: pc: top (first) categories are located at the last index in vector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I30f276fb96bc6999e6cd3ca661d0b1dc4a27950c Reviewed-on: https://gerrit.libreoffice.org/37210 Tested-by: Jenkins Reviewed-by: Noel Grandin Reviewed-by: Tomaž Vajngerl --- sc/source/ui/unoobj/PivotTableDataProvider.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index 34141bf1675a..f02b1361109f 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -631,7 +631,7 @@ css::uno::Reference if (m_aCategoriesColumnOrientation.empty()) return xDataSequence; - std::vector const & rCategories = m_aCategoriesColumnOrientation[0]; + std::vector const & rCategories = m_aCategoriesColumnOrientation.back(); std::unique_ptr pSequence; pSequence.reset(new PivotTableDataSequence(m_pDocument, m_sPivotTableName, -- cgit