diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-21 16:28:44 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-21 16:28:44 -0400 |
commit | 7d4293b3ba64ffd51731d9a2d478a88a45836aa2 (patch) | |
tree | 5d4bfd7a8c9c0ca063f8075e8e9d53c994161ead /sc | |
parent | New unit test for pivot table with duplicated data fields. (diff) | |
download | core-7d4293b3ba64ffd51731d9a2d478a88a45836aa2.tar.gz core-7d4293b3ba64ffd51731d9a2d478a88a45836aa2.zip |
Make sure that FillLabelData doesn't crash in presence of duplicated dims.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 5 |
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); |