[Libreoffice-commits] core.git: svtools/source

Michael Meeks michael.meeks at collabora.com
Thu Jul 24 11:25:32 PDT 2014


 svtools/source/control/ruler.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit b0cdd038ee192dcc0d83182a33fc8c0242ceb1dd
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Thu Jul 24 14:24:25 2014 -0400

    fdo#51534 - rulers should have app-background by default (apparently).
    
    Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1

diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index bf719a3..9d7e288 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -27,6 +27,7 @@
 #include <svtools/ruler.hxx>
 #include <svtools/svtresid.hxx>
 #include <svtools/svtools.hrc>
+#include <svtools/colorcfg.hxx>
 
 #include <boost/scoped_array.hpp>
 #include <vector>
@@ -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 );
     }
 


More information about the Libreoffice-commits mailing list