From b7f2cec55f9a90032fc225fed0c1427faeadc879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 27 Jan 2018 15:18:52 +0100 Subject: Various graphics tweaks --- qtmips_gui/memoryview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui/memoryview.cpp') diff --git a/qtmips_gui/memoryview.cpp b/qtmips_gui/memoryview.cpp index 48882db..31c8827 100644 --- a/qtmips_gui/memoryview.cpp +++ b/qtmips_gui/memoryview.cpp @@ -155,7 +155,7 @@ void MemoryView::Frame::check_update() { int hpart = qMax(height()/10, MIN_OFF); int req_height = height() + 2*hpart; - while (!((content_y <= -hpart) && (content_y >= -2*hpart)) || (widg->height() < req_height)) { + while (!((content_y <= -hpart) && (content_y >= -2*hpart)) || (widg->height() <= req_height)) { int row_h = widg->row_size(); // Calculate how many we need and how much we need to move and update content accordingly int count = (req_height / row_h) + 1; -- cgit v1.2.3