From 170d77e62c46ddb0a5138b77e8c13281873e1ae1 Mon Sep 17 00:00:00 2001 From: karliss Date: Sun, 12 May 2019 07:08:48 +0300 Subject: [PATCH] Check if target graph has been set. (#1517) Fixes #1508. --- src/widgets/OverviewWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/OverviewWidget.cpp b/src/widgets/OverviewWidget.cpp index 35053702..80a3f569 100644 --- a/src/widgets/OverviewWidget.cpp +++ b/src/widgets/OverviewWidget.cpp @@ -97,6 +97,9 @@ void OverviewWidget::targetClosed() void OverviewWidget::updateTargetView() { + if (!targetGraphWidget) { + return; + } qreal curScale = graphView->getViewScale(); int rectx = graphView->getRangeRect().x(); int recty = graphView->getRangeRect().y();