Issue 65321 - Duplicate object names - display problems in presentation
Summary: Duplicate object names - display problems in presentation
Alias: None
Product: Impress
Classification: Application
Component: viewing (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2006-05-12 10:38 UTC by maciejgawrysiak
Modified: 2017-05-20 11:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Example of the problematic presentation (27.53 KB, application/vnd.oasis.opendocument.presentation)
2006-05-12 10:41 UTC, maciejgawrysiak
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description maciejgawrysiak 2006-05-12 10:38:39 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

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"
<draw:image xlink:href="./ObjectReplacements/Object 9" xlink:type="simple"
xlink:show="embed" xlink:actuate="onLoad"/>

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"
<draw:image xlink:href="./ObjectReplacements/Object 37" xlink:type="simple"
xlink:show="embed" xlink:actuate="onLoad"/>

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
- 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
Comment 1 maciejgawrysiak 2006-05-12 10:41:04 UTC
Created attachment 36416 [details]
Example of the problematic presentation
Comment 2 wolframgarten 2006-05-12 10:51:45 UTC
Reproducible. Reassigned.
Comment 3 clippka 2006-05-29 09:49:25 UTC
set to confirmed
Comment 4 Marcus 2017-05-20 11:08:48 UTC
Reset assigne to the default "".