summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column2.cxx8
1 files 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);
}