summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-27 01:42:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-27 01:53:06 +0200
commitc96c6d52cf382cfbc3e2e16619a6e3370fb1a40b (patch)
tree5962ac65cf9362d5fe06975d5dfd8129c023c40c /sc/source/core
parentf98083890c55318dd4f10c666b749d6092eb4617 (diff)
remove chart listener when chart is deleted, fdo#64639
Change-Id: I7ebf75f49c89edcb0bba3a597ba24ac1c0a655ef
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/chartlis.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx
index ed0796073726..df584d485d1d 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -469,6 +469,11 @@ void ScChartListenerCollection::insert(ScChartListener* pListener)
maListeners.insert(aName, pListener);
}
+void ScChartListenerCollection::removeByName(const OUString& rName)
+{
+ maListeners.erase(rName);
+}
+
ScChartListener* ScChartListenerCollection::findByName(const OUString& rName)
{
ListenersType::iterator it = maListeners.find(rName);