mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-29 20:34:56 +01:00
Fixed the crossword search (the new dictionary is more sensitive).
Anyway, this search is useless since the same can be done with a regexp...
This commit is contained in:
parent
0a4b342f78
commit
7d81fc5420
1 changed files with 8 additions and 2 deletions
|
@ -358,9 +358,15 @@ void Dictionary::searchCrossRecTempl(struct params_cross_t *params,
|
|||
{
|
||||
const DAWG_EDGE *current = getEdgeAt<DAWG_EDGE>(edgeptr->ptr);
|
||||
|
||||
if (params->mask[params->wordlen] == '\0' && edgeptr->term)
|
||||
if (params->mask[params->wordlen] == '\0')
|
||||
{
|
||||
oWordList.push_back(params->mask);
|
||||
if (edgeptr->term)
|
||||
oWordList.push_back(params->mask);
|
||||
}
|
||||
else if (current->chr == 0)
|
||||
{
|
||||
// Do not go on recursion if we are on the sink
|
||||
return;
|
||||
}
|
||||
else if (params->mask[params->wordlen] == '.')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue