From b0cdd038ee192dcc0d83182a33fc8c0242ceb1dd Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 24 Jul 2014 14:24:25 -0400 Subject: fdo#51534 - rulers should have app-background by default (apparently). Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1 --- svtools/source/control/ruler.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'svtools') diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index bf719a328fa3..9d7e288657f4 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -1021,7 +1022,10 @@ void Ruler::ImplInitSettings( bool bFont, bool bForeground, bool bBackground ) if ( IsControlBackground() ) aColor = GetControlBackground(); else - aColor = rStyleSettings.GetDialogColor(); + { + svtools::ColorConfig aColorConfig; + aColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor ); + } SetBackground( aColor ); } -- cgit