fix char review (last line was not navigateable)

This commit is contained in:
chrys
2018-06-04 13:31:22 +02:00
parent 01437a07d2
commit 42a668753b
2 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@ def getNextChar(currX,currY, currText):
x = currX
y = currY
if x + 1 == len(wrappedLines[y]):
if y + 1 < len(wrappedLines) - 1:
if y + 1 <= len(wrappedLines) - 1:
y += 1
x = 0
lineBreak = True
@ -97,7 +97,8 @@ def getNextChar(currX,currY, currText):
x += 1
currChar = ''
if not endOfScreen:
currChar = wrappedLines[y][x]
currChar = wrappedLines[y][x]
return x, y, currChar, endOfScreen, lineBreak
def getPhonetic(currChar):