https://bugs.documentfoundation.org/show_bug.cgi?id=155852

            Bug ID: 155852
           Summary: MCGR FILESAVE PPTX export of stepped gradient has
                    wrong colors
           Product: LibreOffice
           Version: 7.6.0.0 beta1+
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Keywords: implementationError
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 187923
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187923&action=edit
examples with draw:gradient-step-count=4

Open attached fodp document and export it to pptx.
Open saved pptx document and compare it with original fodp document.

Errors:
 Some colors are different from original colors.
 Some sections have gradients but should be single-colored.

I think the problem is, that the step colors are calculated different in
rendering in LO than in export to OOXML.

Compare the rendering calculation in
https://opengrok.libreoffice.org/xref/core/vcl/source/outdev/gradient.cxx?r=dccd82b5#341
with export calculation in
https://opengrok.libreoffice.org/xref/core/basegfx/source/tools/bgradient.cxx?r=cdc015ff&fi=doApplySteps#760

Significant difference is on the one hand
  const double fAlpha = static_cast<double>(i) / fStepsMinus1;
and on the other hand
  const double fSingleStep(1.0 / static_cast<double>(nStepCount));

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to