sd/source/ui/sidebar/SlideBackground.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 9321f8602ec903e1e311b831da0504826e1e4f90 Author: Regina Henschel <rb.hensc...@t-online.de> AuthorDate: Tue Jun 27 10:50:23 2023 +0200 Commit: Regina Henschel <rb.hensc...@t-online.de> CommitDate: Tue Jun 27 14:20:20 2023 +0200 tdf#145130 Keep existing gradient geometry using sidebar When setting the start or end color of a gradient of a slide using the sidebar, the new colors were set to a default gradient instead of using the existing one. Change-Id: I0212d2d88e7eb144334308dedd057958ae0a8287 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153634 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.hensc...@t-online.de> diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index ebdbf0977505..6cd8d6b4c858 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -1133,7 +1133,8 @@ IMPL_LINK_NOARG(SlideBackground, FillColorHdl, ColorListBox&, void) break; case drawing::FillStyle_GRADIENT: { - basegfx::BGradient aGradient(createColorStops()); + basegfx::BGradient aGradient = GetGradientSetOrDefault(); + aGradient.SetColorStops(createColorStops()); // the name doesn't really matter, it'll be converted to unique one eventually, // but it has to be non-empty