From ff6fc9927241afe4dc95580bf6bb987fe62a191d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Jun 2022 10:36:30 +0200 Subject: 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 --- svl/source/items/itemset.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'svl') 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 ) -- cgit