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