diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-03 12:19:55 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-03 12:19:55 +1100 |
commit | be676518f4639250376842db7e48e5aaeaad9424 (patch) | |
tree | 66d60af4f426cdc0a6661dfda1b55433d53d50d7 /source/frontend | |
parent | 662f12da9624435b1850b424817879f12b7a30b2 (diff) |
fix rare text wrapping bug in the chat box
also removed unnecessary leftover variables from when text wrapping used to always create a StringList
Diffstat (limited to 'source/frontend')
-rw-r--r-- | source/frontend/StarChat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarChat.cpp b/source/frontend/StarChat.cpp index 230f3d9..9c38b9b 100644 --- a/source/frontend/StarChat.cpp +++ b/source/frontend/StarChat.cpp @@ -177,7 +177,7 @@ void Chat::addMessages(List<ChatReceivedMessage> const& messages, bool showPane) for (auto const& message : messages) { Maybe<unsigned> wrapWidth; if (message.portrait.empty()) - wrapWidth = m_chatLog->size()[0]; + wrapWidth = m_chatLog->size()[0] - m_chatLogPadding[0]; guiContext.setFont(m_font); guiContext.setFontSize(m_fontSize); |