summaryrefslogtreecommitdiff
path: root/sc/qa/unit/mark_test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/mark_test.cxx')
-rw-r--r--sc/qa/unit/mark_test.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/qa/unit/mark_test.cxx b/sc/qa/unit/mark_test.cxx
index ad6124c82530..400392d7873c 100644
--- a/sc/qa/unit/mark_test.cxx
+++ b/sc/qa/unit/mark_test.cxx
@@ -135,7 +135,7 @@ void Test::testSimpleMark( const ScRange& rRange, const ScRange& rSelectionCover
const ScRangeList& rLeftEnvelope, const ScRangeList& rRightEnvelope,
const ScRangeList& rTopEnvelope, const ScRangeList& rBottomEnvelope )
{
- ScMarkData aMark;
+ ScMarkData aMark(MAXROW, MAXCOL);
CPPUNIT_ASSERT( !aMark.IsMarked() && !aMark.IsMultiMarked() );
aMark.SetMarkArea( rRange );
@@ -240,8 +240,8 @@ void Test::testSimpleMark_Row()
void Test::testMultiMark( const MultiMarkTestData& rMarksData )
{
- ScMarkData aMark;
- ScMultiSel aMultiSel;
+ ScMarkData aMark(MAXROW, MAXCOL);
+ ScMultiSel aMultiSel(MAXROW, MAXCOL);
CPPUNIT_ASSERT( !aMark.IsMarked() && !aMark.IsMultiMarked() );
CPPUNIT_ASSERT_EQUAL( SCCOL(0), aMultiSel.GetMultiSelectionCount() );
CPPUNIT_ASSERT( !aMultiSel.HasAnyMarks() );
@@ -817,7 +817,7 @@ void Test::testMultiMark_NegativeMarking()
void Test::testInsertTabBeforeSelected()
{
- ScMarkData aMark;
+ ScMarkData aMark(MAXROW, MAXCOL);
aMark.SelectOneTable(0);
aMark.InsertTab(0);
CPPUNIT_ASSERT_EQUAL(SCTAB(1), aMark.GetSelectCount());
@@ -826,7 +826,7 @@ void Test::testInsertTabBeforeSelected()
void Test::testInsertTabAfterSelected()
{
- ScMarkData aMark;
+ ScMarkData aMark(MAXROW, MAXCOL);
aMark.SelectOneTable(0);
aMark.InsertTab(1);
CPPUNIT_ASSERT_EQUAL(SCTAB(1), aMark.GetSelectCount());
@@ -835,7 +835,7 @@ void Test::testInsertTabAfterSelected()
void Test::testDeleteTabBeforeSelected()
{
- ScMarkData aMark;
+ ScMarkData aMark(MAXROW, MAXCOL);
aMark.SelectOneTable(1);
aMark.DeleteTab(0);
CPPUNIT_ASSERT_EQUAL(SCTAB(1), aMark.GetSelectCount());
@@ -844,7 +844,7 @@ void Test::testDeleteTabBeforeSelected()
void Test::testDeleteTabAfterSelected()
{
- ScMarkData aMark;
+ ScMarkData aMark(MAXROW, MAXCOL);
aMark.SelectOneTable(0);
aMark.DeleteTab(1);
CPPUNIT_ASSERT_EQUAL(SCTAB(1), aMark.GetSelectCount());
@@ -863,14 +863,14 @@ void Test::testScMarkArraySearch()
{
// empty
{
- ScMarkArray ar;
+ ScMarkArray ar(MAXROW);
testScMarkArraySearch_check(ar, -1, false, 0);
testScMarkArraySearch_check(ar, 100, false, 0);
}
// one range
{
- ScMarkArray ar;
+ ScMarkArray ar(MAXROW);
ar.SetMarkArea(10, 20, true);
// 0-9,10-20,21+
@@ -891,7 +891,7 @@ void Test::testScMarkArraySearch()
// three ranges
{
- ScMarkArray ar;
+ ScMarkArray ar(MAXROW);
ar.SetMarkArea(10, 20, true);
ar.SetMarkArea(21, 30, true);
ar.SetMarkArea(50, 100, true);
@@ -912,7 +912,7 @@ void Test::testScMarkArraySearch()
// three single-row ranges
{
- ScMarkArray ar;
+ ScMarkArray ar(MAXROW);
ar.SetMarkArea(4, 4, true);
ar.SetMarkArea(6, 6, true);
ar.SetMarkArea(8, 8, true);
@@ -932,7 +932,7 @@ void Test::testScMarkArraySearch()
// one range
{
- ScMarkArray ar;
+ ScMarkArray ar(MAXROW);
ar.SetMarkArea(10, MAXROW, true);
// 0-10,11+