From 7b0556bba764e4e305921d28a8ae3f1c6f220bed Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Thu, 24 Mar 2016 22:17:40 -0400 Subject: [PATCH] Fix for crash in flowview when the clear button is pressed on the main screen. --- flowviewwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/flowviewwindow.cpp b/flowviewwindow.cpp index d4fe69d..424925e 100644 --- a/flowviewwindow.cpp +++ b/flowviewwindow.cpp @@ -656,6 +656,7 @@ void FlowViewWindow::updatePosition(bool forward) void FlowViewWindow::updateGraphLocation() { + if (frameCache.count() == 0) return; int start = currentPosition - 5; if (start < 0) start = 0; int end = currentPosition + 5;