summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-05-22 11:17:52 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-05-22 12:21:45 -0400
commit1c0e152adaba1b45d0e2cbe83d8f7834b1937eda (patch)
tree8f375ef805b64cf0fba646e2f32eab1cd03c08b4 /sc/qa
parent0ba159e33bb8f47250f57f377af40f7ca941c89c (diff)
Use the block position of the destination, not of the source.
And a test to catch this. Change-Id: Ia73be239b4be96cbe029390efbbec5f49e429652 (cherry picked from commit 6958b6a3ce9f28bed2a529939e7740452929a5b3)
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 36a59fac33b0..90da5f0d0b57 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -4494,6 +4494,7 @@ void Test::testPivotTableDocFunc()
void Test::testSheetCopy()
{
m_pDoc->InsertTab(0, "TestTab");
+ m_pDoc->SetString(ScAddress(0,0,0), "copy me");
CPPUNIT_ASSERT_MESSAGE("document should have one sheet to begin with.", m_pDoc->GetTableCount() == 1);
SCROW nRow1, nRow2;
bool bHidden = m_pDoc->RowHidden(0, 0, &nRow1, &nRow2);