]> git.siccegge.de Git - frida/frida.git/commitdiff
Fix width of basic blocks
authorChristoph Egger <Christoph.Egger@fau.de>
Fri, 6 Feb 2015 15:13:22 +0000 (16:13 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Fri, 6 Feb 2015 15:13:22 +0000 (16:13 +0100)
src/gui/widgets/BasicBlockWidget.cxx

index 2880af34a8cf2ff23ca13798d1f81291aa3ee99b..5dc27ce40efc5760e736dcd3241292e6bd047b7d 100644 (file)
@@ -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);
 
        _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;
        height = 25 + _widget.childrenRect().height();
 
        if (width < 250) width = 250;