From 43a4a1454be0918fda17d2cb500e505f72220b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 10 Feb 2018 10:30:34 +0100 Subject: Another fix for memoryview scroll --- qtmips_gui/memoryview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui') 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(); -- cgit v1.2.3