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

--- Comment #1 from Mike Kaganski <[email protected]> ---
> Macro not receiving event for form modification

This title looks wrong. The event is received (and setting a breakpoint to SUB
ChangeData would trigger the breakpoint when editing the data).

But I am inclined to call this NOTABUG. The macro calls        
oDiag.Component.setmodified(true), abusing its side effect of updating the
component. Not setting its "modified" flag looks legitimate in a locked
document with modifications disallowed; and instead, its XUpdatable::update()
should be called:

> oDiag.Component.update()

which works as expected.

Trying to fix this could be either reverting the fix for tdf#77007 (and then
trying to implement some more complex fix to make sure to mark loaded charts
unmodified in different scenarios), or introducing some more complex logic to
the check in the mentioned fix, which would try to guess if parent
"IsEnableSetModified = false" does not apply to this element, which would be
likely difficult to implement correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to