Apache OpenOffice (AOO) Bugzilla – Issue 90880
Html table only displays the first image if duplicate images included in other cells
Last modified: 2008-09-12 20:22:15 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).
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.
Reassigned
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.
Created attachment 54620 [details] Simple html table with img src links in cells.
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.
closed