Apache OpenOffice (AOO) Bugzilla – Issue 93180
a form control whose context is deleted while change tracking is enabled does not disappear
Last modified: 2013-08-07 14:43:11 UTC
- open the attached text document. It has change tracking enabled, but changes are not shown (Edit/Changes/Record is checked, but Edit/Changes/Show isn't) - select some text including the third paragraph (the one which contains the form control) - delete this text => the button is still there, though it should vanish, since it's part of the deleted paragraph
Created attachment 56048 [details] document to reproduce the bug case
regression between m29 and m30 => keyword, target
AW: There is code in ViewObjectContactOfUnoControl to correct the LayerChange at the object when control is in live mode (see ViewObjectContactOfUnoControl_Impl::modeChanged), but it's no longer triggered. I do not know how it was triggered in the past (probably in paints, found no concrete hints), but the best way now is to check visibility on ActionChanged() at the VOC which itself is triggered on model change, and so also from LayerID change. Changed ViewObjectContactOfUnoControl to be derived from ViewObjectContactOfSdrObj to derive the correct isPrimitiveVisible implementation from there. Als gives access to SdrObject and is conform with the VC also being derived from it's SdrObject incarnation (it's a SdrObject anyways). Added ViewObjectContactOfUnoControl::ActionChanged() which will correct the XControl's visibility when in live mode. Works as expected, doing some more tests...
*** Issue 93175 has been marked as a duplicate of this issue. ***
AW: Works well, checked in. Done.
AW->WG: Please review as described in the task. Maybe FS wants to check, too.
looks good in CWS aw058, thanks.
Tested in m38. Closed.