From c7c8572c0c2d3c056c64d75d1742d413b8bd37d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 15 Feb 2021 20:55:51 +0100 Subject: [PATCH] Do not show empty parenthesis in DoABC2 tag --- .../src/com/jpexs/decompiler/flash/tags/DoABC2Tag.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoABC2Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoABC2Tag.java index e3b1bdd7d..9062239ba 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoABC2Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DoABC2Tag.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; @@ -118,7 +119,7 @@ public class DoABC2Tag extends Tag implements ABCContainerTag { @Override public String getName() { - return super.getName() + " (" + name + ")"; + return super.getName() + (!name.isEmpty() ? " (" + name + ")" : ""); } @Override