mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix DIV0 crash in Overview
.. possible cause of crash reported on the forums.
This commit is contained in:
@@ -2664,7 +2664,7 @@ void
|
||||
DataOverviewItem::itemPaint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) {
|
||||
|
||||
// paint nothing if no values - or a mismatch
|
||||
if (values.count() < names.count()) return;
|
||||
if (names.count() == 0 || values.count() == 0 || values.count() < names.count()) return;
|
||||
|
||||
// step 1: calculate paint metrics, colors, fonts, margins etc etc ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user