Fixed crash in charts with equal minimum and maximum values.
This commit is contained in:
parent
b24be50afe
commit
bb359f6493
|
@ -516,6 +516,9 @@ void ChartWidget::ChartAnimationController::setXPercentageLimits(
|
|||
maxValueFull = std::max(l.maxValue, maxValueFull);
|
||||
minValueFull = std::min(l.minValue, minValueFull);
|
||||
}
|
||||
if (maxValue == minValue) {
|
||||
return;
|
||||
}
|
||||
_previousFullHeightLimits = _finalHeightLimits;
|
||||
_finalHeightLimits = { float64(minValue), float64(maxValue) };
|
||||
if (!_previousFullHeightLimits.max) {
|
||||
|
|
Loading…
Reference in New Issue