mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
GRAPHICS: MACGUI: Fix crash when deleting last character in MacText
This commit is contained in:
parent
de2fd5e1ce
commit
a6cfbb787e
@ -85,7 +85,7 @@ uint MacTextLine::getChunkNum(int *col) {
|
|||||||
|
|
||||||
if (i == chunks.size()) {
|
if (i == chunks.size()) {
|
||||||
i--; // touch the last chunk
|
i--; // touch the last chunk
|
||||||
pos = chunks[i].text.size();
|
pos = chunks[i].text.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
*col = pos;
|
*col = pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user