BlockAnalyzer: Replace value with at

This commit is contained in:
Jonas Kvinge 2024-08-23 20:32:56 +02:00
parent 7ebcc73a49
commit ebaa2e7918
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ void BlockAnalyzer::analyze(QPainter &p, const Scope &s, const bool new_frame) {
for (y = 0; scope_[x] < yscale_.at(y); ++y);
// This is opposite to what you'd think, higher than y means the bar is lower than y (physically)
if (static_cast<double>(y) > store_.value(x)) {
if (static_cast<double>(y) > store_.at(x)) {
store_[x] += step_;
y = static_cast<int>(store_.value(x));
}