]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/widgets/BasicBlockWidget.cxx
Set minimum width to prevent endless loop on empty block
[frida/frida.git] / 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;