Bug 113673 - [WMF] FILEOPEN: Wrong background color of the text in Impress (comment 11)
Summary: [WMF] FILEOPEN: Wrong background color of the text in Impress (comment 11)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2017-11-06 06:54 UTC by Mike
Modified: 2025-06-13 08:14 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
test case (524.31 KB, application/vnd.openxmlformats-officedocument.presentationml.slideshow)
2017-11-06 06:54 UTC, Mike
Details
Screenshots and description (734.65 KB, application/pdf)
2017-11-06 06:55 UTC, Mike
Details
screencast (2.31 MB, video/avi)
2017-11-06 06:55 UTC, Mike
Details
New test case (77.79 KB, application/vnd.oasis.opendocument.presentation)
2017-11-11 06:09 UTC, Mike
Details
description with screen shots (320.23 KB, application/pdf)
2017-11-11 06:10 UTC, Mike
Details
WMF image extracted from document (78.31 KB, image/wmf)
2021-05-22 22:33 UTC, Bartosz
Details
Minified WMF sample (518 bytes, image/x-wmf)
2021-06-03 23:32 UTC, Valek Filippov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2017-11-06 06:54:24 UTC
Description:
If I open the attached file (a PPTS) with LO 6 alpha 1, the presentation starts. On the first slide is the logo of the university rendered wrong.
If I now open the context menu and click on "Edit presentation", the logo on this (same!) slide is show correctly.

Steps to Reproduce:
1. Open PPTS (Presentation starts)
2. Open context menu
3. Click "Edit Presentation


Actual Results:  
LO 6 renders the WMF diffently in presentation and editing mode

Expected Results:
It should be rendered the same.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.0.0.0.alpha1+ (x64)
Build ID: 9ea8686d3573540b697b51d1e2e00bfe2d57d872
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-10-29_07:23:44
Locale: de-DE (de_DE); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 Mike 2017-11-06 06:54:42 UTC
Created attachment 137556 [details]
test case
Comment 2 Mike 2017-11-06 06:55:15 UTC
Created attachment 137557 [details]
Screenshots and description
Comment 3 Mike 2017-11-06 06:55:37 UTC
Created attachment 137558 [details]
screencast
Comment 4 Mohamed 2017-11-08 09:12:10 UTC
I don’t know if I am right or not, if no please provide steps to reproduce.

The issue is partially reproducing. When I used your attached document it was messy. I tried to use it in another impress document that I have, only few line texts are messed up but the autoplay mode doesn’t start.

Steps to reproduce :

1- Create a new Impress file with two or three test slides
2- Save as « Microsoft PowerPoint 2007-2013 XML Autoplay (.ppsx)
3-Close the file.
4-Open the file again.

Actual results :
The file open on the edit mode and the text is messed up.

Expected result :
The file should start in Show mode and the text keep the format.

Testing environment:
    • Operating system : Windows 8.1 Pro 64-bits.
    • LibreOffice : Version: 5.4.3.1 (x64)
      Build ID: 32c8895c6cae21571f364dbb059f419a743ee44d
      CPU threads: 4; OS: Windows 6.29; UI render: default; 
      Locale: en-US (en_US); Calc: group
Comment 5 Mike 2017-11-11 06:09:34 UTC
Created attachment 137676 [details]
New test case
Comment 6 Mike 2017-11-11 06:10:39 UTC
Created attachment 137677 [details]
description with screen shots
Comment 7 Mike 2017-11-11 06:15:06 UTC
I'm sorry, I was not specific enough. I investigated the issue and found out that is not about the PPTS format, but about a fix in the WMF image format.

The alpha1 build of LO 6 contains a fix for images of the WMF file format.

The attached test case „Test Case WMF in Slide.odp“ is a presentation with a WMF, which is affected by this fix.

If you just open this presentation, the WMF looks right, but if you start the Slide Show („Slide Show“ → „Start from first slide“), the WMF is shown messed up.

Here is a step by step list:

1. Please open the presentation „Test Case WMF in Slide.odp“ that is attached to this bug report with LO 6 alpha1. (In earlier builds of LO 6 or LO 5 the issue with the logo is in Editing Mode and in Presentation Mode).
2. Please click on the menu „Slide Show“ and then „Start from the first slide“.
3. The Slide Show starts and the logo (a WMF image) is messed up. The image is rendered the way it was rendered before the fix in LO6 Alpha1.


Version: 6.0.0.0.alpha1+ (x64)
Build ID: a5af0fd9f27af42cf2e8571f659cdad6e606215b
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-11-07_00:30:02
Locale: de-DE (de_DE); Calc: group

To reproduce this, you need a version of LO 6 Alpha1 (fix is only there present).
Comment 8 Buovjaga 2017-11-15 14:34:31 UTC
Confirmed.

Arch Linux 64-bit
Version: 6.0.0.0.alpha1+
Build ID: 17cfe6e25d479428de308c22fcd218dcf8827840
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 15th 2017
Comment 9 QA Administrators 2018-11-16 03:42:35 UTC Comment hidden (obsolete)
Comment 10 Timur 2019-12-02 18:29:28 UTC Comment hidden (obsolete)
Comment 11 Timur 2021-04-19 13:06:22 UTC
In Lo 7.2+ reproduced wrong image from ODT attachment 137676 [details] in Slide show as explained in attachment 137677 [details].
Comment 12 Bartosz 2021-05-22 22:33:16 UTC
Created attachment 172255 [details]
WMF image extracted from document
Comment 13 Valek Filippov 2021-05-23 16:21:17 UTC Comment hidden (no-value)
Comment 14 Timur 2021-05-24 06:48:16 UTC Comment hidden (obsolete)
Comment 15 Valek Filippov 2021-06-03 23:32:29 UTC
Created attachment 172602 [details]
Minified WMF sample

This WMF file has a bunch of Escape records with EPS data in them.
Fortunately this can be safely ignored.

However, because it's a logo, for its letters instead of setting font and render the text, it draws the letters with polygons.
And for whatever reason* every letter that has more than one path (i.e. either has more that one element, like "i" or has a closed shape, like "O") instead of using polygon TWO bitmaps are used.

There is a SetStrechBltMode in front of each bitmap. For the first bitmap it sets the mode to 1 (black on white) and  for the second to 2 (white on black).
First bitmap uses 0x8800c6 ROP2 and the second one uses 0xee0086.

It looks like renderer for slide-show mode does not implement ROPs properly.

IMHO this is not a WMF import problem. 

(* whatever system generated that file probably was not aware about SetPolyfillMode and PolyPolygon; and/or wasn't creative enough to draw outer shape in blue and inner shape in white on top of it.)
Comment 16 QA Administrators 2023-06-05 03:13:47 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2025-06-05 03:11:00 UTC Comment hidden (obsolete)
Comment 18 Mike 2025-06-13 08:14:24 UTC
WFM

LO draws WMF like MS Paint

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded