From ebaa2e791830858edd2e6b8246f56eb63ddb5981 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 23 Aug 2024 20:32:56 +0200 Subject: [PATCH] BlockAnalyzer: Replace value with at --- src/analyzer/blockanalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyzer/blockanalyzer.cpp b/src/analyzer/blockanalyzer.cpp index 90840ddee..42635d1fe 100644 --- a/src/analyzer/blockanalyzer.cpp +++ b/src/analyzer/blockanalyzer.cpp @@ -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(y) > store_.value(x)) { + if (static_cast(y) > store_.at(x)) { store_[x] += step_; y = static_cast(store_.value(x)); }