Issue 90880 - Html table only displays the first image if duplicate images included in other cells
Summary: Html table only displays the first image if duplicate images included in othe...
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: OOo 3.0 Beta
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2008-06-19 12:58 UTC by vext
Modified: 2008-09-12 20:22 UTC (History)
1 user (show)

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


Attachments
Simple html table with img src links in cells. (2.54 KB, application/x-compressed)
2008-06-20 10:22 UTC, vext
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description vext 2008-06-19 12:58:53 UTC
Tested using Aqua build of OOo-Dev 300m19 build 9317, OS X 10.5.3
(other milestones also show the issue)

While working on some complex html layouts (through OOo to enable certain
automated printing functions using Master documents) I noticed that a table
containing multiple copies of the same image would only display the first one
and display a holding 'image' with the unc/url in it in red.
I tried this with a simple html table containing three columns and twenty rows
and observed the same behaviour. 
Steps to reproduce:
1) I created a new html document by hand containing a simple table and put an
image in each cell. Each TD tag then contained a P tag and an IMG SRC
declaration (e.g. ="folder/picture.jpg").
2) When opened in OOo the table was drawn correctly but only the first instance
of the image was displayed. The rest were replaced with a holding 'image' (which
is the same as the one used if the link to the image is invalid).

2a) Changing the image used part way through the table (e.g. picture2.jpg) and
saving/re-opening again showed only the first instance of the first image.
However, clicking on the first instance of the second image brought that one
into view but not any subsequent copies.

Looking at the html source and the Picture properties confirms that all the
image references are the same and so I think it is a rendering issue where
multiple copies of the same image in a table are not processed for display after
the first one.

I have not had time to test on other platforms so will leave this as OS X for
now. It appears that the issue is not observed for images not inside a table.
Also NeoOffice does not have the same issue (all images are displayed).
Comment 1 eric.savary 2008-06-19 13:37:45 UTC
Please attach a sample document but note that, unfortunately, we have no
ressource available to fix or improve the HTML component, so that we only can
fix crashes and huge regressions.
Comment 2 eric.savary 2008-06-19 17:00:47 UTC
Reassigned
Comment 3 vext 2008-06-20 10:20:48 UTC
While attempting to generate a simple test case I have come across some further
details that make me think this is something not entirely OOo dependent.
Testing on Windows XP, OOo 2.4 did not display the problem.
OOo 2.4/X11 on OS X did display it.

However, the issue only seems to arise when the html file is opened from a
Windows 2003 share. This is most peculiar and I am not sure how to narrow down
the cause.
I will attach a test case but understand that the conditions for reproducing the
issue are 'niche' at best. 
In summary:
On OS X open the test case from a Windows 2003 network share. 
Observed: Only the first instance of the image in the table is displayed. The
rest are 'broken link' holding images.

This issue is observable with any html (including within .odm files) table using
the same image in multiple cells.

I assume that as NeoOffice does not have the same issue they have included some
work around (perhaps a caching tweak?)

Thanks for looking into this and I understand if little can be done about such a
minor corner case (it just happens to be one I face every day :)

I will see if I can ascertain how NeoOffice behaves differently to upstream.
Comment 4 vext 2008-06-20 10:22:47 UTC
Created attachment 54620 [details]
Simple html table with img src links in cells.
Comment 5 eric.savary 2008-09-12 20:22:04 UTC
I couldn't reproduce it. I think we are here really in a "niche" as you said...
so to much to investigate. Please try a current vertsion:
http://download.openoffice.org/680/?intcmp=1235
Maybe this will have fixed your problem.
Comment 6 eric.savary 2008-09-12 20:22:15 UTC
closed