[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Aug 16 09:22:45 UTC 2016


 sc/source/core/data/column.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 50e88b1dec896236b6d7653a767028d0bed1c857
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Aug 16 11:09:39 2016 +0200

    update miBroadcasterPos before copying it, tdf#100852 related
    
    Also for CopyAsLinkHandler.
    
    Change-Id: Ia8ca5cbcd5edcf3b85f8d735d7c698572479ec22

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 4257ea1..eba8a0d 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1307,7 +1307,16 @@ public:
     ~CopyAsLinkHandler()
     {
         if (mpDestPos)
+        {
+            // Similar to CopyByCloneHandler, don't copy a singular iterator.
+            {
+                sc::ColumnBlockPosition aTempBlock;
+                mrDestCol.InitBlockPosition(aTempBlock);
+                maDestPos.miBroadcasterPos = aTempBlock.miBroadcasterPos;
+            }
+
             *mpDestPos = maDestPos;
+        }
     }
 
     void setStartListening( bool b )


More information about the Libreoffice-commits mailing list