Bug 155389 - MCGR FILESAVE PPTX fill style is erroneously set to NONE
Summary: MCGR FILESAVE PPTX fill style is erroneously set to NONE
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Object-Fill
  Show dependency treegraph
 
Reported: 2023-05-18 14:24 UTC by Regina Henschel
Modified: 2023-06-01 13:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Shape with multi-step transparency gradient (19.51 KB, application/vnd.oasis.opendocument.presentation)
2023-05-18 14:24 UTC, Regina Henschel
Details
Screenshot Area preperties odp vs pptx (253.63 KB, image/png)
2023-05-18 15:34 UTC, m_a_riosv
Details
Shape with multi-step transparency gradient (15.25 KB, application/vnd.oasis.opendocument.presentation)
2023-05-18 15:51 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2023-05-18 14:24:03 UTC
Created attachment 187373 [details]
Shape with multi-step transparency gradient

Open attached document and save it as pptx.
Open saved file in PowerPoint.
Error: The shape fill is set to "none".

The error is likely in

5370      if (aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, "FillTransparenceGradient"))
5371      {
5372          awt::Gradient aTransparenceGradient;
5373          mAny >>= aTransparenceGradient;
5374          if (aTransparenceGradient.StartColor == 0xffffff && aTransparenceGradient.EndColor == 0xffffff)
5375              aFillStyle = FillStyle_NONE;
5376      }
https://opengrok.libreoffice.org/xref/core/oox/source/export/drawingml.cxx?r=438f0752#5370

The test is not yet adapted to the fact, that transparency gradient now can have more than two stops.
Comment 1 m_a_riosv 2023-05-18 15:34:59 UTC
Created attachment 187374 [details]
Screenshot Area preperties odp vs pptx

I'm not sure if it is the matter, for the Area, it changes from 'Color' to 'Gradient'.
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: b3c88dc039d447322b8c8c564ab6e2f0ce9c5b90
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 2 Regina Henschel 2023-05-18 15:51:25 UTC
Created attachment 187377 [details]
Shape with multi-step transparency gradient

My fault, wrong attachment.
Comment 3 m_a_riosv 2023-05-18 23:34:39 UTC
Who does, may have mistakes, but I'm sure I win.

Reproducible.
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: b3c88dc039d447322b8c8c564ab6e2f0ce9c5b90
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

BTW, v753 shows the whole shape blank.