diff --git a/src/HomeWindow.cpp b/src/HomeWindow.cpp index 2993ac6ff..708f90928 100644 --- a/src/HomeWindow.cpp +++ b/src/HomeWindow.cpp @@ -899,7 +899,7 @@ HomeWindow::drawCursor() // lets draw at to the right of the // last chart... - if (chartCursor == -1) { + if (chartCursor == -1 && charts.count()) { // background light gray for now? QRect line(charts[charts.count()-1]->geometry().x() + charts[charts.count()-1]->width() + 8,