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.grandin@collabora.co.uk>
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 982cbc8..50af12f 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 )