aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-02-10 10:30:34 +0100
committerKarel Kočí <cynerd@email.cz>2018-02-10 10:30:34 +0100
commit43a4a1454be0918fda17d2cb500e505f72220b0d (patch)
tree7e6369ba23e22f506bb53133f7a993d8d7b1212c
parentfc39f11e52ae7b3fa3073aab38fdd4eecbdc02d8 (diff)
downloadqtmips-43a4a1454be0918fda17d2cb500e505f72220b0d.tar.gz
qtmips-43a4a1454be0918fda17d2cb500e505f72220b0d.tar.bz2
qtmips-43a4a1454be0918fda17d2cb500e505f72220b0d.zip
Another fix for memoryview scroll
-rw-r--r--qtmips_gui/memoryview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/memoryview.cpp b/qtmips_gui/memoryview.cpp
index beb364d..d893c06 100644
--- a/qtmips_gui/memoryview.cpp
+++ b/qtmips_gui/memoryview.cpp
@@ -154,7 +154,7 @@ void MemoryView::Frame::check_update() {
int hpart = qMax(height()/10, MIN_OFF);
int req_height = height() + 2*hpart;
- if (((content_y > -hpart) || (content_y < -2*hpart)) && (widg->height() >= req_height))
+ if ((content_y < -hpart) && (content_y > -2*hpart) && (widg->height() >= req_height))
return;
int row_h = widg->row_size();