From: Christoph Egger Date: Wed, 25 Mar 2015 13:54:32 +0000 (+0100) Subject: Set minimum width to prevent endless loop on empty block X-Git-Tag: v0.1~15 X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=dfee3a7d828b09c19ab3c03db17be627b952dcd7;ds=sidebyside Set minimum width to prevent endless loop on empty block Fixes an infinite loop when looking at armhf binaries. armhf doesn't look fully functional but actually does *something* --- diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 19af3bc..6d615b4 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -76,7 +76,7 @@ void CustomQGraphicsTextItem::adjustSize() { int width = 1000; setTextWidth(width); int height = boundingRect().height(); - while (height == boundingRect().height()) { + while (width > 250 && height == boundingRect().height()) { setTextWidth(width -= 10); } width += 10;