From fb2c3fec1b98b54f929d0cec64789b79306e03b1 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 25 Nov 2014 02:22:16 +0100 Subject: check that the fdo#79441 case works in both update references modes Change-Id: I4aa997847661021af27f27e8763a89a61f185f1f --- sc/qa/unit/ucalc.hxx | 1 + sc/qa/unit/ucalc_sort.cxx | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx index 99883c5944e9..7cad0ad9d299 100644 --- a/sc/qa/unit/ucalc.hxx +++ b/sc/qa/unit/ucalc.hxx @@ -366,6 +366,7 @@ public: void testSortRefUpdate2(); void testSortRefUpdate3(); void testSortRefUpdate4(); + void testSortRefUpdate4_Impl(); void testSortRefUpdate5(); void testSortRefUpdate6(); void testSortOutOfPlaceResult(); diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index e6ff96e19a2a..fa338105105a 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -1029,8 +1029,19 @@ void Test::testSortRefUpdate3() // testRefInterne.ods void Test::testSortRefUpdate4() { - SortRefUpdateSetter aUpdateSet; + // This test has to work in both update reference modes. + { + SortRefNoUpdateSetter aUpdateSet; + testSortRefUpdate4_Impl(); + } + { + SortRefUpdateSetter aUpdateSet; + testSortRefUpdate4_Impl(); + } +} +void Test::testSortRefUpdate4_Impl() +{ sc::AutoCalcSwitch aACSwitch(*m_pDoc, true); // turn auto calc on. m_pDoc->InsertTab(0, "Sort"); m_pDoc->InsertTab(1, "Lesson1"); -- cgit