Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-12-01 10:44:28 +01:00
parent 97de5af838
commit 26d6448076
3 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ namespace Nz
assert(glyphCount > 0);
std::size_t startIndex = GetCharacterPosition(m_text, GetGlyphIndex(selectionBegin));
std::size_t endIndex = GetCharacterPosition(m_text, std::min(GetGlyphIndex(selectionEnd), glyphCount - 1));
std::size_t endIndex = GetCharacterPosition(m_text, std::min(GetGlyphIndex(selectionEnd), glyphCount));
Clipboard::SetString(m_text.substr(startIndex, endIndex - startIndex));
}