X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.cxx;h=6d615b41eed305861c6e4e20033ff564cf8f837f;hp=19af3bc39b4ff1eba7475bdf377fb4d1685f2086;hb=dfee3a7d828b09c19ab3c03db17be627b952dcd7;hpb=05a1a1c740e92709a5dc7fab3986517f45051d33 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;