summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2012-11-23 17:31:46 +0100
committerLászló Németh <nemeth@numbertext.org>2012-11-23 17:31:46 +0100
commite53961f0481c7e1d11d9f92ef9eb7a6fe17405b7 (patch)
tree47e1104a13020cc25fa98d069c1681474750de91
parent559f03810d0599efd43c5ad142df9313c12d945e (diff)
fdo#57461 (Lightproof/Hunspell synchronization)
-rw-r--r--ChangeLog4
-rw-r--r--pythonpath/lightproof_impl___implname__.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cb2a828..a35e6ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-23 László Németh <nemeth@numbertext.org>:
+ - fix strange false positives resulted by a synchronization problem (missing
+ alternatives with unloaded dictionary), the problem reported by Olivier Ronez
+
2012-09-18 László Németh <nemeth@numbertext.org>:
- fix suggest() splitting
diff --git a/pythonpath/lightproof_impl___implname__.py b/pythonpath/lightproof_impl___implname__.py
index c4f7cce..11996bd 100644
--- a/pythonpath/lightproof_impl___implname__.py
+++ b/pythonpath/lightproof_impl___implname__.py
@@ -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]