diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:20:19 -0600 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:20:19 -0600 |
| commit | dc50839ef1b2bc266072d94c65608d511d44efc2 (patch) | |
| tree | ed872b1e8caafa9bc7f201705b111544fc3eef7a /src | |
| parent | a7d292b8b673bce4a8471f6e916b44e6fdb64c97 (diff) | |
avoid detaching temporary container
Diffstat (limited to 'src')
| -rw-r--r-- | src/aotextboxwidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aotextboxwidgets.cpp b/src/aotextboxwidgets.cpp index c39b26f3..fd770e53 100644 --- a/src/aotextboxwidgets.cpp +++ b/src/aotextboxwidgets.cpp @@ -90,7 +90,7 @@ void AOChatboxLabel::paintEvent(QPaintEvent *event) if (alignment() & Qt::AlignLeft) { - x = rect.left() + l_indent - std::min(metrics.leftBearing(text()[0]), 0); + x = rect.left() + l_indent - std::min(metrics.leftBearing(text().at(0)), 0); } else if (alignment() & Qt::AlignRight) { |
