https://issues.apache.org/ooo/show_bug.cgi?id=122111

Armin Le Grand <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED

--- Comment #6 from Armin Le Grand <[email protected]> ---
ALG: Indeed, in LinePropertyPanel::NotifyItemUpdate the param pState may be -1
(0xffffffff) when the param eState e.g equals SFX_ITEM_DONTCARE. This does not
bode well when a dynamic_cast to an implemented ItemType is done; this already
throws an exception since -1 *is* taken as object base address.
There may be two reasons for this:
- Someone needed a 'flag' value and used -1, somewhere (prob at one place) in
the office this is used;
- Someone *wanted* AOO to crash when someone tries to use pState when eState is
SFX_ITEM_DONTCARE since this cannot be useful.
Whatever it is; all cases in NotifyItemUpdate need to be safed to only
dynamic_acst pState when eState is >= SFX_ITEM_DEFAULT. Doing this...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to