diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-03-03 11:55:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-03 17:01:44 +0100 |
commit | fba41eff279df015d24cf8faee7d4ff85ef32fac (patch) | |
tree | e1616906a536118933382dee073b40ee351a51b5 /svx | |
parent | b6fe3b13206eee0543ded37c3a1566add284e6da (diff) |
assert more in SvxShape
Change-Id: I98812e4cd70ced6d493f558844832e8c0c99b684
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130914
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 8ccfde1b8b12..cd301d7b5480 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -374,12 +374,12 @@ void SvxShape::Create( SdrObject* pNewObj, SvxDrawPage* /*pNewPage*/ ) { DBG_TESTSOLARMUTEX(); - OSL_PRECOND( pNewObj, "SvxShape::Create: invalid new object!" ); + assert( pNewObj && "SvxShape::Create: invalid new object!" ); if ( !pNewObj ) return; SdrObject* pCreatedObj = mpSdrObjectWeakReference.get(); - OSL_ENSURE( ( pCreatedObj == nullptr ) || ( pCreatedObj == pNewObj ), + assert( ( !pCreatedObj || ( pCreatedObj == pNewObj ) ) && "SvxShape::Create: the same shape used for two different objects?! Strange ..." ); // Correct condition (#i52126#) |