summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-29 10:36:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-29 11:53:21 +0200
commitff6fc9927241afe4dc95580bf6bb987fe62a191d (patch)
tree2b9cd5d434271881745f9840a86d08b5af005b77 /svl
parent761d3a128214b48645f00e2ff094e0f8928d1ee1 (diff)
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>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemset.cxx7
1 files changed, 6 insertions, 1 deletions
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 )