Apache OpenOffice (AOO) Bugzilla – Issue 46421
regression: deleting paragraph break also deletes picture
Last modified: 2013-08-07 14:42:16 UTC
hi, please... - open the attaches writer document (with built 1.1.4 and a 2.0 beta built) - place the cursor left before "Im Bild A" - press BACKSPACE: while 1.1.4 correctly keeps the picture, m87 deletes it! (You may also have a look at issue 44438.)
Created attachment 24478 [details] WRiter document
MRU->OD: delecting the break (with "Backspace" key) between second and third paragraph will also delete the graphic. Using "Delete" key will work fine.
forgot to reassign.
OD->DVO: Please take over - I think this is your playground ;-)
issue 48350 depends on this issue
dvo: Fixed in CWS dvoqbfix4. The problem is in SwUndoSaveCntnt, where content-anchored frames are handled when content is being deleted. There have been several changes regressions (#i34486#, #i30452#) which probably originate from a change necessary for #111827#, with each fix fixing parts of the problems, but leaving others. The current fix has been discussed with hb, od, tra, and myself; hopefully we have now covered all relevant cases. At the core of the issue is how to handle paragraph-anchored frames when their paragraph is being deleted. Depending on how this happens, the graphic must be re-anchored or deleted. With the various mostly-fixed-but-partly-buggy versions since the original change, this would not happen correctly, or even nothing would happen at all. In this particular case, the graphics should have been re-anchored, but was deleted instead. This is now fixed. Whoever touches this again, please be careful. :-) Note: 'Backspace' in the description for this bug deletes the paragraph the graphic is anchored to. That is, it joins the two paragraphs, which technically means the first one gets the deleted. Which is the one with the graphics. Also note that which one gets deleted does NOT influence which formatting 'wins' during a join. That's a different matter. I.e. there is a difference between which paragraphs get deleted physically and logically. dvo->testing: Please make sure the referenced issues are fixed as well. Also test 'funny' combinations of deleting and anchored objects, if possible.
SBA->TRA: As discussed, target set to OOo 2.0
Created attachment 27757 [details] Daniels partly fix, causes problems in undoing changes in connection with sections
TRA: Retargeted to OOo 2.0.1 after consultation with ES. Reason: the proposed fix causes a regression in another functionality. Reminder for TRA: To reproduce the regression introduced by the proposed fix: 1. Open bugdoc 2. Mark paragraph 1 and insert a section. Paragraph 1 is is now in a section. Make sure that there is only one paragraph in the section. 3. Place cursor before "Im Bild A" 4. Press backspace 5. Undo the change -> Graphic disappears! re-open issue and reassign to tra@openoffice.org
reassign to tra@openoffice.org
reset resolution to FIXED
Reopened
Accepted
*** Issue 50025 has been marked as a duplicate of this issue. ***
*** Issue 51256 has been marked as a duplicate of this issue. ***
Fixed on cws swqpp1bfixes
See also #i53665# for another bug in this area.
reassigned re-open issue and reassign to es@openoffice.org
reassign to es@openoffice.org
Regression described by TRA is still not fixed -> see issue 54499.
Verified in cws swqpp1bfixes
Closed