summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-11-26 17:50:14 +0100
committerRadek Doulik <rodo@novell.com>2012-11-26 17:54:20 +0100
commita04735e037289585aa4c4fb68c6907b38a828f41 (patch)
tree3868ac35143cf01339123188169abf43ea124762 /svx
parent3bdd04fc0466154e16243cf233fb2bb3ad4043a0 (diff)
fix crash on impress quit, when custom shapes were added during editing
- reset connection to this unoshape in sdr object so that it doesn't try to delete uno shape later when it might be already deleted Change-Id: I1195bfdaccceb9d7e3e0f0a48aaacb16f7a46ced
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unoshape.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 7855f82b488b..511b94167118 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -1101,8 +1101,11 @@ void SvxShape::Notify( SfxBroadcaster&, const SfxHint& rHint ) throw()
if( bClearMe )
{
- if( !HasSdrObjectOwnership() )
+ if( !HasSdrObjectOwnership() ) {
+ if( mpObj.is() )
+ mpObj->setUnoShape( NULL );
mpObj.reset( NULL );
+ }
if ( !mpImpl->mbDisposing )
dispose();
}