svl/source/items/itemset.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit ff6fc9927241afe4dc95580bf6bb987fe62a191d
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Jun 29 10:36:30 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Jun 29 11:53:21 2022 +0200

    tdf#117539 Assert after cut and paste operation of a chart stick
    
    inline the call to the other constructor, and remove the
        assert(size() != 0)
    it appears to be valid to have a size of zero here
    
    Change-Id: Iff18581109a27622701a5dbe22874854ee7b1faa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136602
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 982cbc837898..50af12fee107 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -45,8 +45,13 @@
  * Don't create ItemSets with full range before FreezeIdRanges()!
  */
 SfxItemSet::SfxItemSet(SfxItemPool& rPool)
-    : SfxItemSet(rPool, rPool.GetFrozenIdRanges())
+    : m_pPool(&rPool), m_pParent(nullptr),
+    m_ppItems(new SfxPoolItem const 
*[svl::detail::CountRanges(rPool.GetFrozenIdRanges())]{}),
+    m_pWhichRanges(rPool.GetFrozenIdRanges()),
+    m_nCount(0),
+    m_bItemsFixed(false)
 {
+    assert(svl::detail::validRanges2(m_pWhichRanges));
 }
 
 SfxItemSet::SfxItemSet( SfxItemPool& rPool, SfxAllItemSetFlag )

Reply via email to