summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2023-06-27 10:50:23 +0200
committerRegina Henschel <rb.henschel@t-online.de>2023-06-27 14:20:20 +0200
commit9321f8602ec903e1e311b831da0504826e1e4f90 (patch)
tree8a412a41e9b37363838332cfd894ff248e378de1 /sd
parentf5bf91ea73bf8a7cd3abc0f343ab2bdceaad905a (diff)
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.henschel@t-online.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx3
1 files changed, 2 insertions, 1 deletions
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