]> git.siccegge.de Git - frida/frida.git/commitdiff
Use first row as reference instead of second
authorChristoph Egger <siccegge@cs.fau.de>
Tue, 3 Jun 2014 14:48:35 +0000 (16:48 +0200)
committerChristoph Egger <siccegge@cs.fau.de>
Tue, 3 Jun 2014 14:48:35 +0000 (16:48 +0200)
Now blocks with only exactly one instruction are printed properly

src/gui/widgets/BasicBlockWidget.cxx

index 689223cbee4ec170a1b037cbad1a9a8733afaa72..6d187a7c1a3e57b7165789496b956bbf24d559fd 100644 (file)
@@ -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;