From: Christoph Egger Date: Fri, 6 Feb 2015 15:13:22 +0000 (+0100) Subject: Fix width of basic blocks X-Git-Tag: v0.1~113 X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=8ab2c60ccb7a4be4119f0672c0fb51816a41d71e Fix width of basic blocks --- diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 2880af3..5dc27ce 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -56,7 +56,7 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes, _layout.addWidget(instruction_label, current_row, 1); instruction_label->setVisible(true); - width = 12 + _widget.sizeHint().width(); + width = 12 + _widget.childrenRect().width(); height = 25 + _widget.childrenRect().height(); if (width < 250) width = 250;