From 29fe054d575f2fe5601c277e788794ad76f707b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 27 Sep 2016 01:29:35 +0200 Subject: [PATCH] Added proper check for empty graph view. --- src/graphview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphview.cpp b/src/graphview.cpp index ac6d9310..bf113cff 100644 --- a/src/graphview.cpp +++ b/src/graphview.cpp @@ -245,7 +245,7 @@ void GraphView::redraw(const QSizeF &size) qreal xs, ys; - if (_visible.isEmpty()) { + if (_visible.isEmpty() || _bounds.isNull()) { removeItem(_xAxis); removeItem(_yAxis); removeItem(_slider);