Bug 117957 - Attached WMF file is not shown correctly.
Summary: Attached WMF file is not shown correctly.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2018-06-01 13:06 UTC by a246246_246-kde
Modified: 2018-06-21 18:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
WMF shown in incorrect color. (62.82 KB, image/wmf)
2018-06-01 13:07 UTC, a246246_246-kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a246246_246-kde 2018-06-01 13:06:11 UTC
Description:
I got some WMF files from http://www.newviewgraphics.com/dna/dna.zip and got attached file B_DNA.wmf.
This file and other ones are not shown correctly, that means it looks different on mspaint.exe on Windows. On mspaint, I see many ellipses drawn in 4 colors, gray, yellow, blue and red, however in LibreOffice 6.0.4.2 on Windows 7 (x64), they are all in black.

Steps to Reproduce:
1. Open attached file B_DNA.wmf with LibreOffice Draw.
2. Open the same file with mspaint.exe.
3. Compare.

Actual Results:  
Ellipses are drawn in black.

Expected Results:
Ellipses are drawn in color.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Comment 1 a246246_246-kde 2018-06-01 13:07:33 UTC
Created attachment 142476 [details]
WMF shown in incorrect color.
Comment 2 a246246_246-kde 2018-06-01 13:09:48 UTC
I also send this file to Inkscape project because it looks it has the same bug.
https://bugs.launchpad.net/inkscape/+bug/1774430
Comment 3 Xavier Van Wijmeersch 2018-06-01 18:53:20 UTC
Those images are to small to give a correct colorpalet

Gimp reject the image as to small 1x1 px. not loading
Geegie same thing not loading the image
Draw give a black image because there is no color info in these small images
That is what i think, maybe i am wrong, hope so
Comment 4 a246246_246-kde 2018-06-02 02:50:58 UTC
Please check my analyze for this image on the Inkscape forum above.
I see it has 7-color palette.
Comment 5 a246246_246-kde 2018-06-02 03:25:51 UTC
BoundingBox is defined at META_PLACEABLE Record (in WMF spec 2.3.2.3.) 
I see 0xce 0xfe 0xc2 0xf4 0x31 0x01 0x27 0x00, that means left: -305, top: -2878, right: 305, bottom 39, when interpreted as 16-bit signed integer.
Comment 6 Buovjaga 2018-06-21 18:03:13 UTC
Setting to NEW

Already in
Win 10
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4