diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 15:58:45 +0000 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-12-05 08:17:40 -0500 |
commit | b07fd6dcfc82be250229d2940dee9ed01550bc6b (patch) | |
tree | 326620d0008a5a7d285d80daa9511c0a65c6cdde /svtools | |
parent | efa845e1cac2ff1fc6619aa774ab56e57034497d (diff) |
GraphicManagerDestroyed would just set the default manager again
which is the only one that could already be set. Seeing
as the manager is always there if a Graphic exists then
the maObjList must be empty at the dtor time
Change-Id: Id447d1e62a4b94b0ef986edf3cc05629c90e511b
(cherry picked from commit 3a44ef1d5de57022ad2f5339dbcbfa534174eb9f)
(cherry picked from commit 4ba98391b536997413be837803566a7d03ba8d4c)
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 7 | ||||
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index f480537c325f..2682e9562134 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -447,13 +447,6 @@ void GraphicObject::FireSwapOutRequest() ImplAutoSwapOutHdl( nullptr ); } -void GraphicObject::GraphicManagerDestroyed() -{ - // we're alive, but our manager doesn't live anymore ==> connect to default manager - mpMgr = nullptr; - ImplSetGraphicManager(); -} - bool GraphicObject::IsCached( OutputDevice* pOut, const Point& rPt, const Size& rSz, const GraphicAttr* pAttr, GraphicManagerDrawFlags nFlags ) const { diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index c59fdf0cc9a6..87d7fb4e5d29 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -49,9 +49,7 @@ GraphicManager::GraphicManager( sal_uLong nCacheSize, sal_uLong nMaxObjCacheSize GraphicManager::~GraphicManager() { - for(GraphicObject* i : maObjList) - i->GraphicManagerDestroyed(); - + assert(maObjList.empty()); delete mpCache; } |