diff --git a/trunk/src/com/jpexs/decompiler/flash/action/treemodel/CallMethodTreeItem.java b/trunk/src/com/jpexs/decompiler/flash/action/treemodel/CallMethodTreeItem.java index 21793e750..4587866e3 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/treemodel/CallMethodTreeItem.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/treemodel/CallMethodTreeItem.java @@ -57,7 +57,11 @@ public class CallMethodTreeItem extends TreeItem { if (blankMethod) { return scriptObject.toString(constants) + hilight("(") + paramStr + hilight(")"); } - return scriptObject.toString(constants) + hilight(".") + stripQuotes(methodName, constants) + hilight("(") + paramStr + hilight(")"); + String soStr = scriptObject.toString(constants); + if (scriptObject.precedence > this.precedence) { + soStr = "(" + soStr + ")"; + } + return soStr + hilight(".") + stripQuotes(methodName, constants) + hilight("(") + paramStr + hilight(")"); } @Override