mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[escher] In textField, fix bug (overwriting outside the buffer !!)
Change-Id: Id757a967400e9cfe521cbd510eaafc9848853b36
This commit is contained in:
@@ -127,7 +127,7 @@ void TextField::ContentView::setCursorLocation(int location) {
|
||||
|
||||
void TextField::ContentView::insertTextAtLocation(const char * text, int location) {
|
||||
int textSize = strlen(text);
|
||||
if (m_currentTextLength + textSize > m_textBufferSize) {
|
||||
if (m_currentTextLength + textSize >= m_textBufferSize) {
|
||||
return;
|
||||
}
|
||||
for (int k = m_currentTextLength; k >= location && k >= 0; k--) {
|
||||
|
||||
Reference in New Issue
Block a user