summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-25 00:02:21 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-25 10:00:14 -0500
commit0dae7466fff1e742543ef7512b7dd22472c75624 (patch)
treec9f146abd01a7cabd81944fd794c133cdecadca3 /svl
parent8c041824b67caa53d3f7f96803b7a69ced6614b5 (diff)
Adjust ref undo to ensure group area listeners are used.
When undoing row deletion (and possibly other similar undo's). And write test for it. Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/broadcast.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx
index c0dfe4f4e69f..8399a79d40a5 100644
--- a/svl/source/notify/broadcast.cxx
+++ b/svl/source/notify/broadcast.cxx
@@ -21,7 +21,7 @@
#include <svl/listener.hxx>
#include <svl/smplhint.hxx>
-void SvtBroadcaster::Normalize()
+void SvtBroadcaster::Normalize() const
{
if (!mbNormalized)
{
@@ -140,11 +140,13 @@ void SvtBroadcaster::ListenersGone() {}
SvtBroadcaster::ListenersType& SvtBroadcaster::GetAllListeners()
{
+ Normalize();
return maListeners;
}
const SvtBroadcaster::ListenersType& SvtBroadcaster::GetAllListeners() const
{
+ Normalize();
return maListeners;
}