Issue 121668 - Export to HTML generates wrong image map when page margins are non-zero
Summary: Export to HTML generates wrong image map when page margins are non-zero
Status: UNCONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Jean
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2013-01-24 20:56 UTC by Nicolai Nielsen
Modified: 2014-02-03 17:08 UTC (History)
2 users (show)

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


Attachments
Examples with the same content with and without margin (69.33 KB, application/octet-stream)
2013-08-16 18:53 UTC, Nicolai Nielsen
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Nicolai Nielsen 2013-01-24 20:56:12 UTC
The Export to HTML function will generate an HTML page and an image for each page in the ODG file. If the page has hyperlinks (inserted via Insert->Hyperlink), an associated client-side image map is also generated.

The coordinates in this image map will be offset if the page in question has margins (Format->Page, Margins) set to anything but "0".

It appears as though the coordinates in the client-side image map are transformed by the margins (its coordinate system is shrunk to fit within the margins).
Comment 1 DanielAlvaro 2013-02-14 01:35:06 UTC
Hello

C an you  attach an example to reproduce the bug?

Regards
Comment 2 Nicolai Nielsen 2013-08-16 18:53:04 UTC
Created attachment 81345 [details]
Examples with the same content with and without margin

Example attached. Contains the following files:
 bug121668-zero-margins.odg: ODG file with a box that is a link and zero margins
 bug121668-1cm-margins.odg: Same as above, but with 1cm margins

 bug121668-zero-margins/*: Zero-margin file exported as high-res HTML
 bug121668-1cm-margins/*: 1cm-margin file exported as high-res HTML

Notice that the hyperlink to OpenOffice.org matches the box in the zero-margin file, but is offset in the 1cm margin file.
Comment 3 Nicolai Nielsen 2014-02-03 17:08:41 UTC
I've uploaded examples -- can somebody confirm and more to CONFIRM status?