Apache OpenOffice (AOO) Bugzilla – Issue 116135
Z-order of objects may be corrupted when saving odt file (or afeter delete and Undo)
Last modified: 2017-05-20 10:44:48 UTC
It appears that the Z-order of objects within a frame can be scrambled when saving an odt file in Writer. Example file: http://dl.dropbox.com/u/1735103/Figure%20z%20order%20problems%204.odt In the example file linked above, the arrows were all placed above the JPEG images when the file was created, however, when it is opened, figures 9 onwards have been corrupted, and the arrows are now below the JPEG images. This file seems to render identically on different computers running the same version of OOo (3.2.0) on Windows XP. Second example file: http://dl.dropbox.com/u/1735103/Figure%20z%20order%20problems%205.odt The same file, again with all of the arrows positioned above the JPEG images, was saved to odt format using a different (slower) computer running the same version of OOo. This file again appears to render identically on different computers, but the corruption of the images is different to that in the previous file. This implies to me that the corruption is taking place when the file is saved, rather than when it is opened, although I may be wrong. This erroneous behaviour seems to be highly variable. It only seems to affect files with many images - the attached files exhibited no problems until around 12 complex images with Z ordered features were added. I see a few other bug reports relating to Z order, but in slightly different ways: #62094 #77355 (#103338) Best regards, Richard Walker.
MRU->OD: When opening the first document linked above, I can only see one arrow being ordered incorrectly at "Figure 1". But I also noticed that when you delete a graphic and Undo the deletion, the arrow objects are all ordered under the graphic.
Created attachment 82277 [details] model with z-order defect I tried to use a picture that recover a frame (adresse). Sometimes my model is correctly opened and i can change adress in the frame directly. But Sometimes, the picture (named page_entete) is displayed on top and i need to change Z-order by putting the picture to background. The problem is when i save the change. The picture is displayed on top when i re-open the document. I tried to change Z-order programmaticaly with a macro in basic but setting the ZOrder property on the picture to 0 changes nothing. I've seen that a bug affects the setting of ZOrder (it swaps the element with ZOrder 0 with the element with the ZOrder change). Maybe a relation between thèses two bugs ? you can see http://www.oooforum.org/forum/viewtopic.phtml?t=38198 for this bug
I had the same problem with Apache OpenOffice 4.0.1. When I open the document, sometimes the picture called "page_entete.." comes in background (that's okay and i can edit the content of the frame 'adresse'), and sometimes, it comes in foreground (i need to change order to put the picture in background to change the content of the frame). In the second case, the order of the picture is not saved (or lost when the document is re-opened ?) I've seen a bug about the property ZOrder of Embedded pictures or frames in Writer (you can see it at http://www.oooforum.org/forum/viewtopic.phtml?t=38198 ). When I change the property by a macro to set the ZOrder of the picture to 0 (per example with 'ThisComponent.DrawPage(5).ZOrder=0' with the picture at index 5 in DrawPage), it changes nothing.
Reset the assignee to the default "issues@openoffice.apache.org".