diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2023-06-14 15:53:19 +0200 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-14 21:29:50 +0200 |
commit | f3f64c77585d0c3c01c0d960f4959e18e9668c30 (patch) | |
tree | 92d4cc01a54d075aac6dd426ba87594e0ce6b705 /basegfx | |
parent | f16b722d7386b47fdc7afa5dfb21a948cb1a4969 (diff) |
tdf155825 result same size in synchronize gradients
While synchronizing color and transparency gradients two new sequences
are generated. In case the last offsets where different, the remaining
stops where not copied to the new sequence and thus they had different
sizes which triggered an assert in oox/source/export/drawingml.cxx.
Change-Id: I446f8cfafb23735f06ad4e05eee8c922141b864d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153063
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/tools/gradienttools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basegfx/source/tools/gradienttools.cxx b/basegfx/source/tools/gradienttools.cxx index f79895bc8b8b..8f3e8ae83c06 100644 --- a/basegfx/source/tools/gradienttools.cxx +++ b/basegfx/source/tools/gradienttools.cxx @@ -441,6 +441,7 @@ namespace basegfx { const double fColorOff(aCurrColor->getStopOffset()); aNewAlpha.emplace_back(fColorOff, rAlphaStops.getInterpolatedBColor(fColorOff, 0, aAlphaStopRange)); + aNewColor.emplace_back(fColorOff, aCurrColor->getStopColor()); bRealChange = true; aCurrColor++; } @@ -448,6 +449,7 @@ namespace basegfx { const double fAlphaOff(aCurrAlpha->getStopOffset()); aNewColor.emplace_back(fAlphaOff, rColorStops.getInterpolatedBColor(fAlphaOff, 0, aColorStopRange)); + aNewAlpha.emplace_back(fAlphaOff, aCurrAlpha->getStopColor()); bRealChange = true; aCurrAlpha++; } |