fdo#57461 fix Lightproof/Hunspell synchronization

This commit is contained in:
László Németh
2012-11-23 17:45:37 +01:00
parent e295c6f831
commit 3938d334ff

View File

@ -54,6 +54,8 @@ def _morph(rLoc, word, pattern, all, onlyaffix):
return None
t = x.getAlternatives()
if not t:
if not analyses: # fix synchronization problem (missing alternatives with unloaded dictionary)
return None
t = [""]
analyses[word] = t[0].split("</a>")[:-1]
a = analyses[word]