summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-31 10:48:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-31 13:20:14 +0200
commit575081690b894322c771c0a7e3a7beb89eb1aa0b (patch)
treef758a89546df3e61364046d36a5fccb164e15635 /svx
parentc66f655be6412910ad1dc041adb519d2c630fe8d (diff)
fix assert in builds with assert enabled, but dbg_util disabled
after commit 8611f6e259b807b4f19c8dc0eab86ca648891ce3 Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu May 27 10:27:46 2021 +0200 ref-count SdrObject Change-Id: Ib320f42daff3b12798ee16b3739142f0e9f6d2e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139082 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdobj.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 2742e657f194..172d2a81632d 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -451,7 +451,10 @@ SdrObject::SdrObject(SdrModel& rSdrModel, SdrObject const & rSource)
SdrObject::~SdrObject()
{
+#ifdef DBG_UTIL
+ // see logic in SdrObject::release
assert(m_refCount == -1);
+#endif
// Tell all the registered ObjectUsers that the page is in destruction.
// And clear the vector. This means that user do not need to call RemoveObjectUser()
// when they get called from ObjectInDestruction().