mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed crash in charts with equal minimum and maximum values.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user