svx/source/svdraw/svdobj.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 575081690b894322c771c0a7e3a7beb89eb1aa0b
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Aug 31 10:48:15 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Aug 31 13:20:14 2022 +0200

    fix assert in builds with assert enabled, but dbg_util disabled
    
    after
        commit 8611f6e259b807b4f19c8dc0eab86ca648891ce3
        Author: Noel Grandin <noel.gran...@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.gran...@collabora.co.uk>

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().

Reply via email to