GRAPHICS: MACGUI: Fix crash when deleting last character in MacText

This commit is contained in:
Eugene Sandulenko 2020-06-18 00:00:20 +02:00
parent de2fd5e1ce
commit a6cfbb787e

View File

@ -85,7 +85,7 @@ uint MacTextLine::getChunkNum(int *col) {
if (i == chunks.size()) {
i--; // touch the last chunk
pos = chunks[i].text.size();
pos = chunks[i].text.size() - 1;
}
*col = pos;