From 24e71e86ee1f30c7a7c1d891a72dd192d3f3e334 Mon Sep 17 00:00:00 2001 From: raiseman Date: Tue, 27 Nov 2018 14:11:31 +0300 Subject: [PATCH] fix graph reopen bug (#2083) --- src/gui/Src/Gui/DisassemblerGraphView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/Src/Gui/DisassemblerGraphView.cpp b/src/gui/Src/Gui/DisassemblerGraphView.cpp index 40139b86..f379a9f3 100644 --- a/src/gui/Src/Gui/DisassemblerGraphView.cpp +++ b/src/gui/Src/Gui/DisassemblerGraphView.cpp @@ -2089,6 +2089,14 @@ void DisassemblerGraphView::graphAtSlot(duint addr) void DisassemblerGraphView::updateGraphSlot() { + if(!DbgIsDebugging()) + { + //happens mostly when debugging process has been terminated + this->ready = false; + zoomLevel = 1; + zoomLevelOld = 1; + } + this->viewport()->update(); }