From 8de1f78ea8dde7d293351681aede94e06443e387 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sun, 24 Apr 2022 22:15:00 -0500 Subject: [PATCH] Fix scrolling in online UniStore list --- source/qr/qrcode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/qr/qrcode.cpp b/source/qr/qrcode.cpp index 3fb0bf1..e663298 100644 --- a/source/qr/qrcode.cpp +++ b/source/qr/qrcode.cpp @@ -402,10 +402,10 @@ void QRCode::handler(std::string &result) { else result = std::string((char *)this->out.data(), this->out.size()); } } - - if (this->selectedStore < this->sPos) this->sPos = this->selectedStore; - else if (this->selectedStore > this->sPos + 6 - 1) this->sPos = this->selectedStore - 6 + 1; } + + if (this->selectedStore < this->sPos) this->sPos = this->selectedStore; + else if (this->selectedStore >= this->sPos + 6 - 1) this->sPos = this->selectedStore - 6 + 1; } /*