summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-09 16:06:47 +0000
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-05 08:17:42 -0500
commit00b4a7267b1584717ca9b8cce49f1e43e652a37d (patch)
tree75c67874374bb4914d934f9d955eb4edb9ba28a3 /svtools
parentb5acc9b74024ebc5be06e4ac6c309b61999aa22b (diff)
mpGlobalMgr is the only manager possible
Change-Id: Ic7e20c9c198cfdab73647b009af3e269aabf680f Reviewed-on: https://gerrit.libreoffice.org/32898 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit bd5ec81c78df81fb85a036d07cc4d60d01575fd0) (cherry picked from commit 64882d474fbd651f144cb8e9c4d6b53ad57c85fb)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfmgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 003063d7c0a6..3ca4c73c950e 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -128,7 +128,7 @@ GraphicObject::~GraphicObject()
{
mpMgr->ImplUnregisterObj( *this );
- if( ( mpMgr == mpGlobalMgr ) && !mpGlobalMgr->ImplHasObjects() )
+ if (!mpGlobalMgr->ImplHasObjects())
{
delete mpGlobalMgr;
mpGlobalMgr = nullptr;