From ae9fe33f17fc1cb65ecc53a5385a64759aa984e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 26 Mar 2021 22:07:37 +0100 Subject: [PATCH] Fixed: #1668 Not removing SymbolClass/ExportAssets entry on character remove --- CHANGELOG.md | 2 ++ .../com/jpexs/decompiler/flash/tags/ExportAssetsTag.java | 6 +++++- .../src/com/jpexs/decompiler/flash/tags/SymbolClassTag.java | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82977b988..b37d92c17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. - Writing DefineFont2/3 ascent/descent as SI16 - it's UI16 - [#1660] Empty thumbnail view on remove item - [#1669] FILLSTYLE color handling in DefineShape3/4 +- [#1668] Not removing SymbolClass/ExportAssets entry on character remove ## [14.3.1] - 2021-03-25 ### Fixed @@ -2164,6 +2165,7 @@ All notable changes to this project will be documented in this file. [#1513]: https://www.free-decompiler.com/flash/issues/1513 [#1660]: https://www.free-decompiler.com/flash/issues/1660 [#1669]: https://www.free-decompiler.com/flash/issues/1669 +[#1668]: https://www.free-decompiler.com/flash/issues/1668 [#1665]: https://www.free-decompiler.com/flash/issues/1665 [#1661]: https://www.free-decompiler.com/flash/issues/1661 [#1435]: https://www.free-decompiler.com/flash/issues/1435 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java index 9c51603ed..19463da65 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags; import com.jpexs.decompiler.flash.SWF; @@ -142,6 +143,9 @@ public class ExportAssetsTag extends SymbolClassTypeTag { modified = true; } } + if (modified) { + setModified(true); + } return modified; } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SymbolClassTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SymbolClassTag.java index ef483ba32..afcde2c81 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SymbolClassTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/SymbolClassTag.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags; import com.jpexs.decompiler.flash.SWF; @@ -132,6 +133,9 @@ public class SymbolClassTag extends SymbolClassTypeTag { modified = true; } } + if (modified) { + setModified(true); + } return modified; } }