Fixed EditBox::selectText

0.8
Bruno Van de Velde 2017-02-12 02:00:40 +01:00
parent 9f6c0a2641
commit 5102d17667
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ namespace tgui
m_selChars = m_selEnd - m_selStart;
m_textBeforeSelection.setString(m_textFull.getString().substring(0, m_selStart));
m_textSelection.setString(m_textFull.getString().substring(m_selStart, m_selEnd));
m_textSelection.setString(m_textFull.getString().substring(m_selStart, m_selEnd - m_selStart));
m_textAfterSelection.setString(m_textFull.getString().substring(m_selEnd));
recalculateTextPositions();