diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2024-10-31 13:38:30 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-10-31 17:22:09 +0100 |
commit | 288d720e4940d8fdd71715e6d339765e90716931 (patch) | |
tree | 14cff99ea02471c1aa8d94a8df9011d5c690df63 /sfx2/source/inc | |
parent | a58d37eb5061436b9732d933d1970938f55a5872 (diff) |
tdf#162666 Make SfxStateCache handle Items correctly
SfxStateCache had problems processing the extra Item
states disabled/invalid. Note that due to not using a
Pool here it is not possible to use an ItemSet or an
ItemHolder, those would automatically handle these
cases correctly.
In this cache, this currently needs to be done
handish. Also note that because of that this may break
again when changes in the Item/ItemSet/ItemHolder
mechanism may be done.
Change-Id: I007bc25c727e6432062fa0d2af8215a912cb2fff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175871
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/statcach.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index 388e184f6653..2e648bd4b7fb 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -67,7 +67,7 @@ friend class BindDispatch_Impl; css::uno::Reference < css::frame::XDispatch > xMyDispatch; SfxControllerItem* pController; // Pointer to first bound Controller (interlinked with each other) SfxSlotServer aSlotServ; // SlotServer, SlotPtr = 0 -> not on Stack - SfxPoolItem* pLastItem; // Last sent Item, never -1 + const SfxPoolItem* pLastItem; // Last sent Item, never -1 SfxItemState eLastState; // Last sent State bool bCtrlDirty:1; // Update Controller? bool bSlotDirty:1; // Present Function, must be updated |