diff options
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/memoryview.cpp | 2 |
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(); |