From 4a50045f2577a95c1dd064966faab218788c548d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 6 Nov 2022 21:35:53 +0100 Subject: [PATCH] Ignore bitmapId 65535 as fill needed character --- .../src/com/jpexs/decompiler/flash/types/FILLSTYLE.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FILLSTYLE.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FILLSTYLE.java index 53900a816..04082e078 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FILLSTYLE.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FILLSTYLE.java @@ -91,6 +91,9 @@ public class FILLSTYLE implements NeedsCharacters, FieldChangeObserver, Serializ || (fillStyleType == CLIPPED_BITMAP) || (fillStyleType == NON_SMOOTHED_REPEATING_BITMAP) || (fillStyleType == NON_SMOOTHED_CLIPPED_BITMAP)) { + if (bitmapId == 65535) { //In some cases, this special value is used, but is not used. Ignore it. (#1851) + return; + } needed.add(bitmapId); } }