From: Christoph Egger Date: Tue, 3 Jun 2014 14:48:35 +0000 (+0200) Subject: Use first row as reference instead of second X-Git-Tag: v0.1~180 X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=b111ca0e0961d2e5294d555a25e8f3cea7ff9785 Use first row as reference instead of second Now blocks with only exactly one instruction are printed properly --- 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;