MCGR: Use tryToRecreateBorder for better BW comp with LO
commit8259a99f41367a1d8326c9157fe1902915715879
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>
Tue, 30 May 2023 14:48:38 +0000 (30 16:48 +0200)
committerArmin Le Grand <Armin.Le.Grand@me.com>
Wed, 31 May 2023 09:03:34 +0000 (31 11:03 +0200)
tree880bfe937c0aa9fe93c398cdf919a467505b561e
parentc6fcc69ec3a4b36526fbf8ca959371d1ee8e0fb3
MCGR: Use tryToRecreateBorder for better BW comp with LO

For better compatibility with LO versions before MCGR, try
to re-create a 'border' value based on the existing GradientSteps.

With MCGR we do not need 'border' anymore in quite some cases since
no Start/EndColor at 0.0 resp. 1.0 is explicitely needed. Since we
(unfortunately need to) internally continue to support border
anyways it does no harm to fallback to use the border value - if
there is an equivalent representation as this helper checks for.

For exports that do not support 'border' this will be adapted as
needed (see tryToApplyBorder())

Change-Id: If98c64039ff97143d4b5c92ac2a950e70f5bb70a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152395
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
include/basegfx/utils/bgradient.hxx
xmloff/source/style/GradientStyle.cxx