summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/config/optload.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index 9e3ba24a1f92..93d6b7e4dabe 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -375,10 +375,12 @@ SwCaptionPreview::SwCaptionPreview()
void SwCaptionPreview::ApplySettings(vcl::RenderContext& rRenderContext)
{
- Wallpaper aBack(rRenderContext.GetSettings().GetStyleSettings().GetWindowColor());
+ const StyleSettings& rSettings = rRenderContext.GetSettings().GetStyleSettings();
+ Wallpaper aBack(rSettings.GetWindowColor());
rRenderContext.SetBackground(aBack);
rRenderContext.SetFillColor(aBack.GetColor());
rRenderContext.SetLineColor(aBack.GetColor());
+ rRenderContext.SetTextColor(rSettings.GetWindowTextColor());
if (!mbFontInitialized)
{