summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/qa/unit/ucalc.hxx1
-rw-r--r--sc/qa/unit/ucalc_sort.cxx13
2 files changed, 13 insertions, 1 deletions
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");