Skip to content

Commit dc50839

Browse files
committed
avoid detaching temporary container
1 parent a7d292b commit dc50839

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aotextboxwidgets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void AOChatboxLabel::paintEvent(QPaintEvent *event)
9090

9191
if (alignment() & Qt::AlignLeft)
9292
{
93-
x = rect.left() + l_indent - std::min(metrics.leftBearing(text()[0]), 0);
93+
x = rect.left() + l_indent - std::min(metrics.leftBearing(text().at(0)), 0);
9494
}
9595
else if (alignment() & Qt::AlignRight)
9696
{

0 commit comments

Comments
 (0)