From dfee3a7d828b09c19ab3c03db17be627b952dcd7 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 25 Mar 2015 14:54:32 +0100 Subject: [PATCH] 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* --- src/gui/widgets/BasicBlockWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5