diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-07 22:55:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-07 22:56:53 -0500 |
commit | 5897d4a60f766ca0cd751281e7c32af3df677303 (patch) | |
tree | 79c8f1516f521f3db39586851e060b45e152e0aa /sc/qa | |
parent | 4687fe4917889a0fc0c4ca377970cb006bd59c85 (diff) |
Encapsulated empty and non-empty filter criteria.
Because those two conditions were not very obvious.
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 8621dfcdf61a..24e183a94eab 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -2255,9 +2255,7 @@ void Test::testAutofilter() // Filter for non-empty cells by column C. rEntry.bDoQuery = true; rEntry.nField = 2; - rEntry.GetQueryItem().meType = ScQueryEntry::ByValue; - rEntry.GetQueryItem().maString = rtl::OUString(); - rEntry.GetQueryItem().mfVal = SC_NONEMPTYFIELDS; + rEntry.SetQueryByNonEmpty(); m_pDoc->Query(0, aParam, true); // only row 3 should be hidden. The rest should be visible. @@ -2269,7 +2267,7 @@ void Test::testAutofilter() CPPUNIT_ASSERT_MESSAGE("row 4 and down should be visible.", !bHidden && nRow1 == 3 && nRow2 == MAXROW); // Now, filter for empty cells by column C. - rEntry.GetQueryItem().mfVal = SC_EMPTYFIELDS; + rEntry.SetQueryByEmpty(); m_pDoc->Query(0, aParam, true); // Now, only row 1 and 3, and 6 and down should be visible. |