From 5ac93a7d03c962b9e999e25fe062d605935b38af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 15 Feb 2021 07:27:47 +0100 Subject: [PATCH] DoInitAction to string without spriteid when exportedname exists --- .../com/jpexs/decompiler/flash/tags/DoInitActionTag.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoInitActionTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoInitActionTag.java index ffad20389..49b4aa909 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoInitActionTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoInitActionTag.java @@ -224,7 +224,7 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource { public String getName() { String expName = swf == null ? "" : swf.getExportName(spriteId); if (expName == null || expName.isEmpty()) { - return super.getName(); + return super.getName() + " (" + spriteId + ")"; } String[] pathParts = expName.contains(".") ? expName.split("\\.") : new String[]{expName}; return pathParts[pathParts.length - 1]; @@ -259,11 +259,4 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource { public void setSourceTag(Tag t) { //nothing } - - @Override - public String toString() { - return getName() + " (" + spriteId + ")"; - } - - }