Skip to content

Commit e216875

Browse files
committed
fix comparison when one of the value is plain rgb
1 parent 9d5a4df commit e216875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org/w3c/css/values/RGBA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public final void setAlpha(ApplContext ac, CssValue val)
7878

7979
public boolean equals(RGBA other) {
8080
if (other != null) {
81-
return super.equals(other) && va.equals(other.va);
81+
return super.equals(other) && ((va == null && other.va == null) || (va != null && va.equals(other.va)));
8282
}
8383
return false;
8484
}

0 commit comments

Comments
 (0)