summaryrefslogtreecommitdiff
path: root/tools/source/generic
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-10-24 11:10:57 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-10-24 11:10:57 +0000
commit5cb4753e7dc19ec01cf617933a026477bb2f4a11 (patch)
treec2d25dbe642b0926d72cd07f0a40afef1bfd52c7 /tools/source/generic
parent272cd91c41ffb187f710fe2ec57e7a8e3ac50fb6 (diff)
#103729# tweak IsDark to MS compatibility
Diffstat (limited to 'tools/source/generic')
-rw-r--r--tools/source/generic/color.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index b99a674b4a24..015e842d13f2 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: color.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: ssa $ $Date: 2002-06-26 16:40:33 $
+ * last change: $Author: ssa $ $Date: 2002-10-24 12:10:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,7 +158,9 @@ void Color::Invert()
BOOL Color::IsDark() const
{
- return GetLuminance() <= 25;
+ // #103729# favour compatibility to Word
+ return GetRed()+GetGreen()+GetBlue() < 154;
+ //return GetLuminance() <= 25;
}
// -----------------------------------------------------------------------