mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
Fix addchart crash on empty homewindow
Silly bounds error when there are zero charts on the homewindow. Fixes #232.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user