From 5033a56eace885f39e574b0db2006fd1db5c388a Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 20 Jul 2016 15:25:28 +0200 Subject: [PATCH] Update word_utils.py --- src/fenrir-package/utils/word_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fenrir-package/utils/word_utils.py b/src/fenrir-package/utils/word_utils.py index 0c8e28ff..fb7f4aa4 100644 --- a/src/fenrir-package/utils/word_utils.py +++ b/src/fenrir-package/utils/word_utils.py @@ -1,6 +1,8 @@ #!/bin/python def getCurrentWord(x,y, currText): + if currText == '': + return -1, -1, '' wordFound = False currWord = '' currLine = wrappedLines[y].replace("\t"," ")