From c1007fae7088da22948acd4fa24c9fe54aeae0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 10 May 2025 13:05:27 +0200 Subject: [PATCH] Fixed RGBA equals method --- .../ffdec_lib/src/com/jpexs/decompiler/flash/types/RGBA.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/RGBA.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/RGBA.java index 3fb5a8830..dcc40ab8c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/RGBA.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/RGBA.java @@ -188,7 +188,7 @@ public class RGBA extends RGB implements Serializable { if (obj == null) { return false; } - if (obj instanceof RGB) { + if ((obj instanceof RGB) && (!(obj instanceof RGBA))) { final RGB other = (RGBA) obj; if (this.alpha != 255) { return false; @@ -218,5 +218,5 @@ public class RGBA extends RGB implements Serializable { return false; } return this.alpha == other.alpha; - } + } }