summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-01 05:54:07 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-01 07:37:07 +0100
commit96ec51292301a105effacfcceec44f696ee6e0f0 (patch)
treee3bd26865a1adf08adcb427e8b8bbd7606ae9555
parent4e3baa08cbaf1e15ef668d92878d1f6f8eba1303 (diff)
add test case for fdo#86518
Change-Id: I297ba5fe7d218ef3bfce6c95c54f446038b7fdca
-rw-r--r--sc/qa/unit/ucalc_formula.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 90e906b41109..56f5f8c080a5 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -2582,6 +2582,20 @@ void Test::testFormulaRefUpdateNameDeleteRow()
aExpr = pCode->CreateString(aCxt, ScAddress(0,0,0));
CPPUNIT_ASSERT_EQUAL(OUString("$B$2:$B$4"), aExpr);
+ m_pDoc->InsertTab(1, "test2");
+
+ ScMarkData aMark2;
+ aMark2.SelectOneTable(1);
+ rFunc.DeleteCells(ScRange(0,2,1,MAXCOL,2,1), &aMark2, DEL_CELLSUP, true, true);
+
+ pName = m_pDoc->GetRangeName()->findByUpperName("MYRANGE");
+ CPPUNIT_ASSERT(pName);
+ pCode = pName->GetCode();
+
+ aExpr = pCode->CreateString(aCxt, ScAddress(0,0,0));
+ CPPUNIT_ASSERT_EQUAL(OUString("$B$2:$B$4"), aExpr);
+
+ m_pDoc->DeleteTab(1);
m_pDoc->DeleteTab(0);
}