Fixed #1489 AS1/2 direct editation - reversed conditions in if

This commit is contained in:
Jindra Petřík
2021-02-24 19:55:59 +01:00
parent 9f2ab6729c
commit 95e7490de8
2 changed files with 5 additions and 4 deletions
@@ -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<GraphSourceItem> 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<GraphSourceItem> ret = new ArrayList<>();
ret.addAll(item.getOriginal().toSource(localData, this));