diff --git a/CHANGELOG.md b/CHANGELOG.md index 851c17147..04c38aba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ All notable changes to this project will be documented in this file. - [#2405] Incorrect saving tags after Cloning / Copy-pasting - [#1646] Scrolling in Error log frame inside log texts - JLayer stripping last byte of MP3 data +- [#2469] Converting shape type did not convert gradient colors transparency ## [23.0.1] - 2025-05-16 ### Fixed @@ -3872,6 +3873,7 @@ Major version of SWF to XML export changed to 2. [#2464]: https://www.free-decompiler.com/flash/issues/2464 [#2405]: https://www.free-decompiler.com/flash/issues/2405 [#1646]: https://www.free-decompiler.com/flash/issues/1646 +[#2469]: https://www.free-decompiler.com/flash/issues/2469 [#2427]: https://www.free-decompiler.com/flash/issues/2427 [#1826]: https://www.free-decompiler.com/flash/issues/1826 [#2448]: https://www.free-decompiler.com/flash/issues/2448 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java index 2655801ad..a32332c93 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java @@ -193,6 +193,14 @@ public class GRADIENT implements Serializable { result.gradientRecords = Arrays.copyOfRange(result.gradientRecords, 0, 8); } } + + for (GRADRECORD rec : result.gradientRecords) { + if (shapeNum < 3) { + rec.color = new RGB(rec.color); + } else { + rec.color = new RGBA(rec.color); + } + } return result; }