Fixed getText in Text widget.

This commit is contained in:
Robert Borzecki committed 2019-08-22 11:53:28 +02:00
1 parent 418081304b
commit edf7e8ac57
3 files changed
+17 -8

No files matched your search

+2 -1
View File
@@ -311,7 +311,8 @@ UTF8& UTF8::operator+=( const UTF8& utf ) {
data = newData;
sizeAllocated = newSizeAllocated;
strLength += utf.strLength;
sizeUsed += utf.sizeUsed;
//-1 is to ignore double null terminator as it is counted in sizeUsed
sizeUsed += utf.sizeUsed-1;
lastIndex = 0;
lastIndexData = data;
}