[Libreoffice-bugs] [Bug 140155] Macro not receiving event for form modification

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 26 13:40:34 UTC 2021


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

--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210426/045d32ae/attachment.htm>


More information about the Libreoffice-bugs mailing list