Issue 92001 - A frame element shows replacement when there is no link to it
Summary: A frame element shows replacement when there is no link to it
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: OOo 2.4.1
Hardware: Other All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-07-22 17:32 UTC by wdonne
Modified: 2017-05-20 11:18 UTC (History)
2 users (show)

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

The sample document (11.81 KB, application/vnd.oasis.opendocument.text)
2008-07-22 17:33 UTC, wdonne
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description wdonne 2008-07-22 17:32:27 UTC
The attached document contains a draw:frame in which there is one draw:object.
The alternative draw:image element has been deleted. Despite this, when opening
the document, the alternative representation is still shown. When I delete it
from "ObjectReplacements" it is no longer shown. There seems to be an implicit
reference to the replacement, which I think is not allowed according to the spec.

The use-case is the transformation of an empty chart. After the transformation
the chart is filled with data. When opening the document one has to double-click
on it in order to see the filled chart. Until then the replacement image of the
empty chart is shown.
Comment 1 wdonne 2008-07-22 17:33:08 UTC
Created attachment 55299 [details]
The sample document
Comment 2 michael.ruess 2008-07-23 09:11:45 UTC
This draw:frame is an OLE object. The OLE object will always be shown by the
replacement picture until the server application (in this case: OO Chart) has
been called/opened by double-click. Only in this moment it is possible to update
the view of the object.
Comment 3 michael.ruess 2008-07-23 09:14:28 UTC
Comment 4 wdonne 2008-07-23 13:39:53 UTC
I disagree. First of all when the ObjectReplacements directory is not present the chart is shown without 
any double-click. Second, how can it know there is a replacement image in ObjectReplacements if there is 
no link to it in draw:frame? According to the spec object replacements are declared in the frame.

It is obvious that only the interactive update of an embedded object is forseen in OpenOffice. Automatic 
generation of documents or automatic transformation of documents should be taken into account as well. 
Imagine a document with tens of charts is generated. Do you expect the user who wants to view it to 
double-click on all the charts?
Comment 5 wdonne 2008-07-24 11:27:18 UTC
There is another inconsistency which proves the double-click by the user is not
always necessary. When I convert this document to Word 97 and PDF with UNO, I
see that in the former case the replacement image is used, while in the latter
the chart is rendered properly. The Word user will end up with an unrendered
chart and is not able to activate it.
Comment 6 michael.ruess 2008-07-24 11:51:17 UTC
Comment 7 michael.ruess 2008-07-24 11:57:06 UTC
MRU->OD: At first to you.
Comment 8 Marcus 2017-05-20 11:18:12 UTC
Reset assigne to the default "".