diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-14 02:31:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 02:31:36 -0600 |
| commit | 764b2f8944ef4d40a3829c1e55112b0cb4ff32fe (patch) | |
| tree | 76db40f16c2e290ca8df7aff27597b6509f28e4f /src/aotextboxwidgets.cpp | |
| parent | ed8bc457351005b8590de5a70f8004edcf1635c1 (diff) | |
| parent | a9e2ea19508ceb120fbe8a570d35e651c15f819a (diff) | |
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/aotextboxwidgets.cpp')
| -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) { |
