diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-03-22 18:59:43 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-03-22 18:59:43 +0000 |
commit | 7a340230fd9fd89a1277e4508834685cf9fc27a5 (patch) | |
tree | c3794bf23003cdc029c271f0e8a0d9589bc7944e /src/testcases/org/apache | |
parent | a45f7bdcddb4df0794eddf1655b8e17da60f4f76 (diff) | |
download | poi-7a340230fd9fd89a1277e4508834685cf9fc27a5.tar.gz poi-7a340230fd9fd89a1277e4508834685cf9fc27a5.zip |
#64241 - shade and tint calculation are based now on scRGB (opposed to HSL) colorspace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r-- | src/testcases/org/apache/poi/sl/TestCommonSL.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/sl/TestCommonSL.java b/src/testcases/org/apache/poi/sl/TestCommonSL.java index bb04ad71cb..2911b12e42 100644 --- a/src/testcases/org/apache/poi/sl/TestCommonSL.java +++ b/src/testcases/org/apache/poi/sl/TestCommonSL.java @@ -29,10 +29,10 @@ import org.junit.Ignore; @Ignore public class TestCommonSL { - public static boolean sameColor(Color colorExpected, PaintStyle paintActual) { - if (!(paintActual instanceof SolidPaint)) return false; - Color thisC = DrawPaint.applyColorTransform(((SolidPaint)paintActual).getSolidColor()); - return thisC.equals(colorExpected); + public static Color getColor(PaintStyle paintActual) { + return (paintActual instanceof SolidPaint) + ? DrawPaint.applyColorTransform(((SolidPaint)paintActual).getSolidColor()) + : null; } } |