[Libreoffice-commits] core.git: Branch 'feature/calc-group-interpreter' - sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Mon Jul 1 06:06:15 PDT 2013


 sc/source/core/data/column.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a189859341240afedb5293ed50e6da15cc0518b1
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Mon Jul 1 09:02:13 2013 -0400

    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

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 25a20f6..edd552b 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)
         {


More information about the Libreoffice-commits mailing list