Bug 149922 - [FILEOPEN PPTX] Equation color lost on import
Summary: [FILEOPEN PPTX] Equation color lost on import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PPTX-Equations
  Show dependency treegraph
 
Reported: 2022-07-08 21:43 UTC by Pablo
Modified: 2023-02-08 22:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
PPTX with equation that has red color (31.85 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2022-07-08 21:44 UTC, Pablo
Details
PDF exported from PowerPoint (114.00 KB, application/pdf)
2022-07-08 21:45 UTC, Pablo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo 2022-07-08 21:43:34 UTC
Description:
The attached pptx has a red equation. In Impress the equation is black.

LibreOffice Math 7.0 added support for setting RGB colors. The equation could be imported as:
COLOR RGB 255 0 0 {𝐴 = 𝜋 {𝑟} ^ {2}}
http://libreoffice-dev.blogspot.com/2020/06/user-defined-color-for-symbols-in.html

Steps to Reproduce:
1. Open the attached pptx in Impress
2. Compare to the PDF exported from PowerPoint

Actual Results:
Equation with black fonts.

Expected Results:
Equation with red Fonts.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 2; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Ubuntu package version: 1:7.3.4~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 1 Pablo 2022-07-08 21:44:46 UTC
Created attachment 181187 [details]
PPTX with equation that has red color
Comment 2 Pablo 2022-07-08 21:45:16 UTC
Created attachment 181188 [details]
PDF exported from PowerPoint
Comment 3 Rafael Lima 2022-07-09 14:02:34 UTC
Confirmed with

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 61f5c991a97de8990badfed6ef840941b5aa8c7f
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded

The equation has color in the PPTX file and it is not being imported when opened in Impress.
Comment 4 Aron Budea 2022-07-09 16:15:50 UTC
This looked fine until 6.4.0.3, but probably due to the replacement image shown, as described in bug 129061 comment 5.
Comment 5 Rafael Lima 2022-07-09 19:20:53 UTC
(In reply to Aron Budea from comment #4)
> This looked fine until 6.4.0.3, but probably due to the replacement image
> shown, as described in bug 129061 comment 5.

Indeed this "worked" in the past due to duplication.

However, since here we only have a single Formula object, we could fix this in the import filter.
Comment 6 Pablo 2023-02-08 22:05:38 UTC
Still reproducible in:

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded