mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:50:45 +00:00
Correct toString for number variable values while debugging
This commit is contained in:
@@ -45,6 +45,7 @@ import com.jpexs.decompiler.flash.action.parser.script.ActionScriptLexer;
|
||||
import com.jpexs.decompiler.flash.action.parser.script.ParsedSymbol;
|
||||
import com.jpexs.decompiler.flash.action.parser.script.SymbolType;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import com.jpexs.decompiler.flash.ecma.EcmaScript;
|
||||
import com.jpexs.decompiler.flash.gui.AppDialog;
|
||||
import com.jpexs.decompiler.flash.gui.AppStrings;
|
||||
import com.jpexs.decompiler.flash.gui.DebugPanel;
|
||||
@@ -507,14 +508,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
|
||||
case VariableType.STRING:
|
||||
return "\"" + Helper.escapeActionScriptString("" + v.value) + "\"";
|
||||
default:
|
||||
if (v.value instanceof Number) {
|
||||
String sv = "" + v.value;
|
||||
if (sv.endsWith(".0")) {
|
||||
sv = sv.substring(0, sv.length() - 2);
|
||||
}
|
||||
return sv;
|
||||
}
|
||||
return "" + v.value;
|
||||
return EcmaScript.toString(v.value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user