sc/source/core/data/column2.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 62c30328a038b85c5b51d39306629d383fa4b61e
Author: Kohei Yoshida <kohei.yosh...@gmail.com>
Date:   Fri May 3 18:05:25 2013 -0400

    I should first check whether a broadcaster exists at this position.
    
    Change-Id: I014e2054dda4103bb90b84db3bf20c5efd5dabab

diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 3301e00..db9a3e8 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1874,8 +1874,12 @@ void ScColumn::FindUsed( SCROW nStartRow, SCROW nEndRow, 
bool* pUsed ) const
 
 void ScColumn::StartListening( SvtListener& rLst, SCROW nRow )
 {
-    SvtBroadcaster* pBC = new SvtBroadcaster;
-    maBroadcasters.set(nRow, pBC);
+    SvtBroadcaster* pBC = GetBroadcaster(nRow);
+    if (!pBC)
+    {
+        pBC = new SvtBroadcaster;
+        maBroadcasters.set(nRow, pBC);
+    }
     rLst.StartListening(*pBC);
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to