Kaydet (Commit) 2d4edd7d authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#93388 broadcasting to removed listeners isn't a good idea

This cures only a symptom, the underlying cause is that the broadcasters
still are listed in maBulkGroupAreas.

Change-Id: I9625483016a51eb6f6a7e3d58ed42c7dad3a57b3
üst 7ffe6aeb
......@@ -1155,12 +1155,22 @@ void ScBroadcastAreaSlotMachine::BulkBroadcastGroupAreas()
for (; it != itEnd; ++it)
{
ScBroadcastArea* pArea = it->first;
const sc::ColumnSpanSet* pSpans = it->second;
assert(pArea);
assert(pSpans);
aHint.setSpans(pSpans);
pArea->GetBroadcaster().Broadcast(aHint);
bBroadcasted = true;
SvtBroadcaster& rBC = pArea->GetBroadcaster();
if (!rBC.HasListeners())
{
/* FIXME: find the cause where the last listener is removed and
* this area is still listed here. */
SAL_WARN("sc.core","ScBroadcastAreaSlotMachine::BulkBroadcastGroupAreas - pArea has no listeners and should had been removed already");
}
else
{
const sc::ColumnSpanSet* pSpans = it->second;
assert(pSpans);
aHint.setSpans(pSpans);
rBC.Broadcast(aHint);
bBroadcasted = true;
}
}
maBulkGroupAreas.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment