From cdc3eec1f2e93b3dbfa5376c9eb67e407b40e8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 18 Jan 2021 08:46:01 +0100 Subject: [PATCH] GraphViz graph display - code structure detection disabled as it is buggy. --- .../decompiler/flash/gui/graph/GraphVizGraphPanel.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/graph/GraphVizGraphPanel.java b/src/com/jpexs/decompiler/flash/gui/graph/GraphVizGraphPanel.java index 7bad26d68..8acb58b85 100644 --- a/src/com/jpexs/decompiler/flash/gui/graph/GraphVizGraphPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/graph/GraphVizGraphPanel.java @@ -53,10 +53,11 @@ public class GraphVizGraphPanel extends AbstractGraphPanel { StringBuilderTextWriter sbWriter = new StringBuilderTextWriter(null, sb); ex.export(graph, sbWriter); String original = sb.toString(); - CodeStructureModifyOperation structureModify = new CodeStructureModifyOperation(); - String structured = structureModify.execute(original, null); + /*CodeStructureModifyOperation structureModify = new CodeStructureModifyOperation(); + String structured = structureModify.execute(original, null);*/ + //CodeStructureModifyOperation is buggy - it does not properly handle gotos try { - image = new GraphVizDotCommands().dotToImage(structured); + image = new GraphVizDotCommands().dotToImage(original); } catch (IOException ex1) { logger.log(Level.SEVERE, "Exporting image failed", ex1); image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);