https://bugs.documentfoundation.org/show_bug.cgi?id=164285

--- Comment #6 from Armin Le Grand (allotropia) <[email protected]> ---
Thanks to you both - that helps :-)
Could reproduce on master.

Then I checked-out 207501b8385818a5d413b9f4001e0d24aaa4f2a9 which is the
version just before ca3c6d468f68af1506bf4e56b47655e5d56306a8 which is the
mentioned change in comment2. It creates exactly the same crash in

SfxItemPool::GetUserOrPoolDefaultItem

which is no surprise: The macro creates an ItemSet with SlotIDs (crashing one
is 10092 aka SID_ATTR_TRANSFORM_SIZE_POINT). SlotIDs (WhichIDs > 5000) have no
defaults in the pool. That is why when creating ItemSets for UI usinng SlotIDs
all entries have to be set. There are access methods to ItemSet which return a
const& to an Item, these *rely* on an Item being set or - if not - a default to
exist, else it asserts (see svl/source/items/itempool.cxx:725).

I am wondering if that macro ever worked. Looking deeper...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to