From b111ca0e0961d2e5294d555a25e8f3cea7ff9785 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 3 Jun 2014 16:48:35 +0200 Subject: [PATCH] Use first row as reference instead of second Now blocks with only exactly one instruction are printed properly --- src/gui/widgets/BasicBlockWidget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 689223c..6d187a7 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -53,8 +53,8 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes, 2; _widget.setMinimumWidth(column_width); - _widget.setMinimumHeight(_widget.rowHeight(1) * (_widget.rowCount()) + 2); - _widget.setMaximumHeight(_widget.rowHeight(1) * (_widget.rowCount()) + 2); + _widget.setMinimumHeight(_widget.rowHeight(0) * (_widget.rowCount()) + 2); + _widget.setMaximumHeight(_widget.rowHeight(0) * (_widget.rowCount()) + 2); dy = _widget.rowHeight(0) * (_widget.rowCount()) + 25; -- 2.39.2