Issue 121668

Summary: Export to HTML generates wrong image map when page margins are non-zero
Product: Draw Reporter: Nicolai Nielsen <nicolai>
Component: save-exportAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact: Jean <jeantschet>
Severity: Normal    
Priority: P3 CC: issues, jdaniel.alvaro
Version: 3.4.1Keywords: needmoreinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Examples with the same content with and without margin none

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?