svx/source/unodraw/unoshape.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit a04735e037289585aa4c4fb68c6907b38a828f41 Author: Radek Doulik <r...@novell.com> Date: Mon Nov 26 17:50:14 2012 +0100 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 diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 7855f82..511b941 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits