diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-24 00:00:16 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-24 23:29:41 -0400 |
commit | 6e02c49c11c52196fe0b92ef80ca724470dcaad2 (patch) | |
tree | d686b321b3b4bcf6a46731d01dc064f663098651 | |
parent | f4e048ea1ea80394b77894d1721e28b47e8d2c14 (diff) |
I'm supposed to move it, not shift it.
Change-Id: I3fe1f05a57089b42296e5758542772d69119c17a
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index ec6a6da71fcd..af5f96c7677b 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -907,9 +907,10 @@ void Test::testFormulaRefUpdateMove() if (!checkFormula(*m_pDoc, ScAddress(1,12,0), "$D$6")) CPPUNIT_FAIL("Wrong formula."); - // The value cells are in D4:D6. Push D4:D5 to the right but leave D6 + // The value cells are in D4:D6. Move D4:D5 to the right but leave D6 // where it is. - m_pDoc->InsertCol(ScRange(3,0,0,3,4,0)); + bMoved = rFunc.MoveBlock(ScRange(3,3,0,3,4,0), ScAddress(4,3,0), true, false, false, false); + CPPUNIT_ASSERT_MESSAGE("Failed to move D4:D5 to E4:E5", bMoved); // Only the values of B10 and B11 should be updated. CPPUNIT_ASSERT_EQUAL(3.0, m_pDoc->GetValue(1,9,0)); |