tdf#131506 tdf#143031 EMF+ Fix displaying PathGradient fill
commit8419e2909aef8916111e4dce9c0a070464a06e66
authorBartosz Kosiorek <gang65@poczta.onet.pl>
Sun, 12 Jun 2022 19:51:52 +0000 (12 21:51 +0200)
committerXisco Fauli <xiscofauli@libreoffice.org>
Wed, 15 Jun 2022 06:41:31 +0000 (15 08:41 +0200)
tree8bd8bc3d5bb49574d3df14c927518d09805463af
parent45d400ec42a59b03aca00cf1e08e3a9be2488537
tdf#131506 tdf#143031 EMF+ Fix displaying PathGradient fill

With previous implementation, the EMF+ import is calculating
gradient positions wrongly. It is causing warning:

  SvgGradientHelper got invalid SvgGradientEntries outside [0.0 .. 1.0]

and the gradient was not displayed at all.
This patch fixes that and gradient is displayed correctly

Change-Id: I6229c516165436d0c7ae187d9eb69b5494da396f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135607
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit 7b12c659842eb53b96dd98ecea65c6071506dfbb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135746
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135858
drawinglayer/source/tools/emfpbrush.cxx
drawinglayer/source/tools/emfphelperdata.cxx
drawinglayer/source/tools/primitive2dxmldump.cxx
emfio/qa/cppunit/emf/EmfImportTest.cxx
emfio/qa/cppunit/emf/data/TestEmfPlusBrushPathGradientWithBlendColors.emf [new file with mode: 0644]
svgio/qa/cppunit/SvgImportTest.cxx