diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-09-30 08:40:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-01 08:15:39 +0200 |
commit | 3de097e028d1079b0f48f43fab843fe53d39ec5d (patch) | |
tree | 882c8876f6664ce9721b8bed16320e4cc7cabf2f /svl | |
parent | 8e56287a931b7fbc2fd645e0d5592212965b8d04 (diff) |
fix bug in SvtListener::CopyAllBroadcasters
need to flush existing broadcasters before overwriting
Change-Id: If570b838d0313ab7598b36ff8a32fc6d31dea92c
Reviewed-on: https://gerrit.libreoffice.org/61151
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/notify/listener.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx index 506647784451..c668397baa47 100644 --- a/svl/source/notify/listener.cxx +++ b/svl/source/notify/listener.cxx @@ -90,6 +90,7 @@ void SvtListener::EndListeningAll() void SvtListener::CopyAllBroadcasters( const SvtListener& r ) { + EndListeningAll(); BroadcastersType aCopy(r.maBroadcasters); maBroadcasters.swap(aCopy); BroadcastersType::iterator it = maBroadcasters.begin(); |