]> git.siccegge.de Git - frida/frida.git/commitdiff
Set minimum width to prevent endless loop on empty block
authorChristoph Egger <Christoph.Egger@fau.de>
Wed, 25 Mar 2015 13:54:32 +0000 (14:54 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Wed, 25 Mar 2015 13:54:32 +0000 (14:54 +0100)
Fixes an infinite loop when looking at armhf binaries. armhf doesn't
look fully functional but actually does *something*

src/gui/widgets/BasicBlockWidget.cxx

index 19af3bc39b4ff1eba7475bdf377fb4d1685f2086..6d615b41eed305861c6e4e20033ff564cf8f837f 100644 (file)
@@ -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;