From f34620b40b94d8021637c86ceb651ec881515397 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 3 May 2013 18:05:25 -0400 Subject: I should first check whether a broadcaster exists at this position. Change-Id: I014e2054dda4103bb90b84db3bf20c5efd5dabab --- sc/source/core/data/column2.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 3301e00928c2..db9a3e84e301 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); } -- cgit