[Libreoffice-commits] core.git: Branch 'aoo/trunk' - tools/source
Oliver-Rainer Wittmann
orw at apache.org
Fri Nov 22 00:07:25 PST 2013
tools/source/generic/color.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 46f0ae6495f3f70698708f6bf20d61f023a99b99
Author: Oliver-Rainer Wittmann <orw at apache.org>
Date: Fri Nov 22 07:56:24 2013 +0000
121870: adjust threshold for <Color::IsDark()> to improve interoperability with Microsoft Office documents
Patch by: Pedro <pfg at apache.org>
Review by: Oliver <orw @apache.org>
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index ff9c47e..d79f91d 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -143,7 +143,7 @@ void Color::Invert()
sal_Bool Color::IsDark() const
{
- return GetLuminance() <= 38;
+ return GetLuminance() <= 55;
}
// -----------------------------------------------------------------------
More information about the Libreoffice-commits
mailing list