summaryrefslogtreecommitdiff
path: root/svx/source/dialog/rubydialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/rubydialog.cxx')
-rw-r--r--svx/source/dialog/rubydialog.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx
index 7da1d8241d9c..dd28355baf8f 100644
--- a/svx/source/dialog/rubydialog.cxx
+++ b/svx/source/dialog/rubydialog.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rubydialog.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: os $ $Date: 2002-09-04 10:55:00 $
+ * last change: $Author: hr $ $Date: 2003-03-27 15:01:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,6 +119,10 @@
#include <cppuhelper/implbase1.hxx>
#endif
+#ifndef INCLUDED_SVTOOLS_COLORCFG_HXX
+#include <svtools/colorcfg.hxx>
+#endif
+
using namespace com::sun::star::uno;
using namespace com::sun::star::frame;
using namespace com::sun::star::text;
@@ -851,8 +855,11 @@ void SvxRubyDialog::AssertOneEntry()
void SvxRubyDialog::UpdateColors( void )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ svtools::ColorConfig aColorConfig;
+
Font aFnt( aPreviewWin.GetFont() );
- Color aNewTextCol( rStyleSettings.GetWindowTextColor() );
+
+ Color aNewTextCol( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );
Color aNewFillCol( rStyleSettings.GetWindowColor() );
if( aNewFillCol != aFnt.GetFillColor() || aNewTextCol != aFnt.GetColor() )