summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-21 16:28:44 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-21 16:28:44 -0400
commit7d4293b3ba64ffd51731d9a2d478a88a45836aa2 (patch)
tree5d4bfd7a8c9c0ca063f8075e8e9d53c994161ead /sc/qa/unit/ucalc.cxx
parent70ce9efbac248f0e7952cda6cfb783798b62d459 (diff)
Make sure that FillLabelData doesn't crash in presence of duplicated dims.
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r--sc/qa/unit/ucalc.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 2f8d0995f43a..c134f136db76 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);