mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fixed possible crash in stack linear chart view.
This commit is contained in:
parent
3fa6335b24
commit
be82df72e6
@ -342,7 +342,9 @@ void StackLinearChartView::paintChartOrZoomAnimation(
|
||||
for (auto k = 0; k < c.chartData.lines.size(); k++) {
|
||||
const auto &line = c.chartData.lines[k];
|
||||
const auto isLastLine = (k == lastEnabled);
|
||||
const auto &transitionLine = _transition.lines[k];
|
||||
const auto &transitionLine = hasTransitionAnimation
|
||||
? _transition.lines[k]
|
||||
: Transition::TransitionLine();
|
||||
const auto lineAlpha = linesFilter->alpha(line.id);
|
||||
if (!lineAlpha) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user