From 1fd1565ada23e286833dc90f4b81e2da3a5f73f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 5 Mar 2016 19:32:56 +0100 Subject: [PATCH] debugger: correct display variable values through getters --- src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java index 8c812ccdb..cfaf53a6e 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java @@ -17,6 +17,7 @@ package com.jpexs.decompiler.flash.gui.abc; import com.jpexs.debugger.flash.Variable; +import com.jpexs.debugger.flash.VariableFlags; import com.jpexs.debugger.flash.VariableType; import com.jpexs.debugger.flash.messages.in.InGetVariable; import com.jpexs.decompiler.flash.SWF; @@ -379,7 +380,9 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener(); childTraits = new ArrayList<>(); - + if (thisVar.vType != VariableType.FUNCTION || ((thisVar.flags & VariableFlags.HAS_GETTER) > 0)) { + thisVar = igv.parent; + } Variable curTrait = null; for (int i = 0; i < igv.childs.size(); i++) {