Fix for crash in flowview when the clear button is pressed on the main screen.

This commit is contained in:
Collin Kidder
2016-03-24 22:17:40 -04:00
parent ed238440a4
commit 7b0556bba7
+1
View File
@@ -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;