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:49 -0500
commit7d52a5dff557117c0f8710eb27e61b328323ac90 (patch)
treeada43bcb8a7ed736d55c840760bc58135b98f85e /svl
parent847ac84d64cbbebe50d4ac5c21f5bda9e83d7fa4 (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 (cherry picked from commit 0dae7466fff1e742543ef7512b7dd22472c75624)
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;
}