Apache OpenOffice (AOO) Bugzilla – Issue 65321
Duplicate object names - display problems in presentation
Last modified: 2017-05-20 11:08:48 UTC
The attached file is a presentation, that was first created in OO 1.0 as .sxi, than edited in 1.1.4, 2.0 (at that moment it was saved as .odp) and finally opened in OO 2.0.2. The problem is that if you open Navigator (CTRL+SHIFT+F5) you will see duplicate object names on the slides (we have two objects named "Object 9" and two objects named "Object 7"). This result in wrong displaying of objects (in large presentations that we have - the objects that have the same names sometimes are not visible or one of them overcast the other). I think the older versions of OO are responsible for that (something is wrong in saving or converting to .odp format). I think the next version of OpenOffice should detect if there are duplicate object names in document and if so repair the document (i.e. objects named : "Object 7" "Object 7" "Object 9" "Object 9" should be recognized and renamed to unique names). After seeing the XML code of that kind of documents we also noticed that: In slide 1 we have: <draw:frame draw:style-name="standard" draw:layer="layout" svg:width="10.777cm" svg:height="5.401cm" svg:x="8.223cm" svg:y="9.599cm"> <draw:object xlink:href="./Object 9" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> <draw:image xlink:href="./ObjectReplacements/Object 9" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> </draw:frame> and in slide 3: <draw:frame draw:name="Object 9" draw:style-name="standard" draw:layer="layout" svg:width="14.3cm" svg:height="7.334cm" svg:x="6.7cm" svg:y="7cm"> <draw:object xlink:href="./Object 37" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> <draw:image xlink:href="./ObjectReplacements/Object 37" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> </draw:frame> So the physical location of object 9 on slide 3 is "./Object 37" and the physical location of object 9 on slide 1 is "./Object 9". We noticed that after adding objects to the presentation, if the number of them reaches 37, OpenOffice will detect that location "Object 37" exists and will name the next object: "Object 38" - not "Object 37". And now please open attached file OO202_errors.odp: - insert new object i.e. formula on slide 1 - copy and paste it so many times, that the number of objects in the presentation was more than 37 - until the object named "Object 38" will appear (CTRL+SHIFT+F5) - and finally try to save the document on the disk - the OpenOffice will start to save and hangs himself, and the only thing you can do is to manually kill him Best regards
Created attachment 36416 [details] Example of the problematic presentation
Reproducible. Reassigned.
set to confirmed
Reset assigne to the default "issues@openoffice.apache.org".