Check if target graph has been set. (#1517)

Fixes #1508.
This commit is contained in:
karliss 2019-05-12 07:08:48 +03:00 committed by GitHub
parent f154ec0a70
commit 170d77e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();