Created attachment 187923 [details] 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));
Patch is in https://gerrit.libreoffice.org/c/core/+/153154
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/2b1b2a758cc4666c6cf6b147722223281dfe1f30 tdf#155852 same method for StepCount in OOXML as in rendering It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Regina Henschel committed a patch related to this issue. It has been pushed to "libreoffice-7-6": https://git.libreoffice.org/core/commit/2910dad56c85348d11c428ec20dc57d88ba1d946 tdf#155852 same method for StepCount in OOXML as in rendering It will be available in 7.6.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.