Bug 131968 - area-polygon in image-map does not interpret attribute svg:viewBox
Summary: area-polygon in image-map does not interpret attribute svg:viewBox
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2020-04-07 19:45 UTC by Regina Henschel
Modified: 2024-06-05 10:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File with image map (30.56 KB, application/vnd.oasis.opendocument.text)
2020-04-07 19:45 UTC, Regina Henschel
Details
file to see the effect of svg:viewBox on shapes (11.72 KB, application/vnd.oasis.opendocument.graphics)
2020-04-07 19:46 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-04-07 19:45:34 UTC
Created attachment 159399 [details]
File with image map

Open attached file. It contains two images with image-map. The active area is defined by a polygon. The only difference is the svg:viewBox element. In the first image width and height of it is double of the values in the second image.
Expected result: The active area in the first image is half the width and height of that in the second image.
To see the active area click on the image and go to menu Edit > Image Map.

To see, that doubling width and height in the svg:viewBox indeed makes the polygon half the width and height, you can use the second attached file. It has two shapes which differ only in the svg:viewBox, same as in the image map, that one is half of the other.

LibreOffice works internally always with 1/100 mm and writes the svg:viewBox accordingly. But it should be able to interpret other values on opening. It would solve the problem, if the 1/100 mm coordinates would be calculated on opening such files.
Comment 1 Regina Henschel 2020-04-07 19:46:27 UTC
Created attachment 159400 [details]
file to see the effect of svg:viewBox on shapes
Comment 2 Xisco Faulí 2020-05-13 11:30:48 UTC
Reproduced in

Version: 7.0.0.0.alpha1+
Build ID: 1ffe59ef31186e36ad0aa7bbcdd32e407ee8d26c
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

and

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 3 QA Administrators 2022-06-05 03:40:38 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2022-06-05 16:34:36 UTC
The error still exists in Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 172e208e6b0674f42c301c5ee5e280e9138ba1b4
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 5 QA Administrators 2024-06-05 03:19:56 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2024-06-05 10:12:19 UTC
The problem is still not solved in Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: fbe57382eef1138999f63e01b6152d4d05749807
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded