Bugfix
This commit is contained in:
@@ -69,8 +69,11 @@ void HistogramChart::pushData(qreal value)
|
||||
else if (value > maxValue) {
|
||||
|
||||
int newMaxIndex = binIndex(value);
|
||||
Q_ASSERT(newMaxIndex > 0);
|
||||
Q_ASSERT(newMaxIndex >= 0);
|
||||
|
||||
if (newMaxIndex > 0) {
|
||||
_histogram.resize(static_cast<size_t>(newMaxIndex + 1));
|
||||
}
|
||||
|
||||
maxValue = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user