diff --git a/CHANGELOG.md b/CHANGELOG.md index b1bc45849..a26723b83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. - Collapsing tag tree on SWF reload - #1339 AS1/2 direct editation - targetPath as an expression - #1467 AS1/2 direct editation - allow new Number call +- #1489 AS1/2 direct editation - reversed conditions in if ## [13.0.3] - 2021-02-12 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java index 347747405..518336ce4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.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.action.parser.script; import com.jpexs.decompiler.flash.SWF; @@ -417,9 +418,8 @@ public class ActionSourceGenerator implements SourceGenerator { @Override public List generate(SourceGeneratorLocalData localData, NotItem item) throws CompilationException { - if (item.getOriginal() instanceof Inverted) { - GraphTargetItem norig = ((Inverted) item).invert(null); - return norig.toSource(localData, this); + if (item.value instanceof NotItem) { + return item.value.value.toSource(localData, this); } List ret = new ArrayList<>(); ret.addAll(item.getOriginal().toSource(localData, this));