summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-01 09:02:13 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-01 10:29:20 -0400
commitbd4c6a7d7521abb0e36ebfba6e14685a1e195be8 (patch)
tree1a2343c50c9f6e5a439e80ffb3fddf9bc138f439 /sc/source/core/data/column.cxx
parentadd9e14a4a45d29ac7284f9cecf762e3a075a01d (diff)
Fix a crasher on copy to clip.
The logical row position equals the top block position plus offset within block, not minus. Change-Id: Ia6376d8e971f9d3379977895d14f97f43c5664ba
Diffstat (limited to 'sc/source/core/data/column.cxx')
-rw-r--r--sc/source/core/data/column.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index a224b6f4c8fe..aa82f4d16613 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1276,7 +1276,7 @@ public:
void operator() (const sc::CellStoreType::value_type& aNode, size_t nOffset, size_t nDataSize)
{
- size_t nTopRow = aNode.position - nOffset;
+ size_t nTopRow = aNode.position + nOffset;
switch (aNode.type)
{