summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/SlideBackground.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/sidebar/SlideBackground.cxx')
-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