[Libreoffice-commits] .: sc/qa
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Mar 21 13:28:45 PDT 2012
sc/qa/unit/ucalc.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 7d4293b3ba64ffd51731d9a2d478a88a45836aa2
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Wed Mar 21 16:28:44 2012 -0400
Make sure that FillLabelData doesn't crash in presence of duplicated dims.
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 2f8d099..c134f13 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -2134,6 +2134,11 @@ void Test::testPivotTableDuplicateDataFields()
CPPUNIT_ASSERT_MESSAGE("Table output check failed", bSuccess);
}
+ ScPivotParam aParam;
+ pDPObj->FillLabelData(aParam);
+ CPPUNIT_ASSERT_MESSAGE("There should be exactly 4 labels (2 original, 1 data layout, and 1 duplicate dimensions).",
+ aParam.maLabelArray.size() == 4);
+
pDPs->FreeTable(pDPObj);
m_pDoc->DeleteTab(1);
More information about the Libreoffice-commits
mailing list