summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-20 15:36:07 +0000
committerDavid Tardon <dtardon@redhat.com>2015-03-21 06:32:42 +0000
commit599bd5eec910e6c39a385e4b369a9e8cc1fd3bf2 (patch)
treeaa72b07411e399718b1e383f1a026b647e371f81 /sw
parentdcc6ea7385cd358cee7a6718a117c128f0a7e66a (diff)
fix double delete on loading ooo123605-1.odt
if there are no listeners to send the event to then don't acquire and release the Source in the temporary used by forEach and so avoid double-releasing on loading ooo123605-1.odt Change-Id: I6843042d7cf8c0ffee01c7d519299fcb05b29a4e (cherry picked from commit 9527eeec237f5d797a6420371c76f95246adeb84) Reviewed-on: https://gerrit.libreoffice.org/14926 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index dc88bfc03fc9..73d922634c93 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -109,6 +109,8 @@ using ::editeng::SvxBorderLine;
static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
::cppu::OInterfaceContainerHelper & rListeners)
{
+ if (!rListeners.getLength())
+ return;
//TODO: find appropriate settings of the Event
chart::ChartDataChangeEvent event;
event.Source = & rSource;