From ad6c02afbd3e8f2857de5628fd2e868d963edcbd Mon Sep 17 00:00:00 2001 From: Sigurd Schneider Date: Sat, 12 Jan 2019 17:04:05 +0100 Subject: [PATCH] [turbolizer] View whole graph after phase change ..instead of wrongly keeping the location from the previous view if the selection became empty after attaching it. Change-Id: I606010ad86034c2ec06e00c82143a22ca2d88274 Notry: true Bug: v8:7327 Reviewed-on: https://chromium-review.googlesource.com/c/1407055 Commit-Queue: Sigurd Schneider Reviewed-by: Georg Neis Cr-Commit-Position: refs/heads/master@{#58788} --- tools/turbolizer/src/graph-view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/turbolizer/src/graph-view.ts b/tools/turbolizer/src/graph-view.ts index 9abdec087c..355c7756c9 100644 --- a/tools/turbolizer/src/graph-view.ts +++ b/tools/turbolizer/src/graph-view.ts @@ -235,7 +235,7 @@ export class GraphView extends View implements PhaseView { this.createGraph(data.data, rememberedSelection); this.broker.addNodeHandler(this.selectionHandler); - if (rememberedSelection != null) { + if (rememberedSelection != null && rememberedSelection.size > 0) { this.attachSelection(rememberedSelection); this.connectVisibleSelectedNodes(); this.viewSelection();