|
a/src/qtgui/spell_w.cpp |
|
b/src/qtgui/spell_w.cpp |
|
... |
|
... |
161 |
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
|
161 |
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
|
162 |
}
|
162 |
}
|
163 |
for (list<string>::const_iterator it = suggs.begin();
|
163 |
for (list<string>::const_iterator it = suggs.begin();
|
164 |
it != suggs.end(); it++)
|
164 |
it != suggs.end(); it++)
|
165 |
res.entries.push_back(Rcl::TermMatchEntry(*it));
|
165 |
res.entries.push_back(Rcl::TermMatchEntry(*it));
|
|
|
166 |
#ifdef TESTING_XAPIAN_SPELL
|
|
|
167 |
string rclsugg = rcldb->getSpellingSuggestion(expr);
|
|
|
168 |
if (!rclsugg.empty()) {
|
|
|
169 |
res.entries.push_back(Rcl::TermMatchEntry("Xapian spelling:"));
|
|
|
170 |
res.entries.push_back(Rcl::TermMatchEntry(rclsugg));
|
|
|
171 |
}
|
|
|
172 |
#endif // TESTING_XAPIAN_SPELL
|
166 |
}
|
173 |
}
|
167 |
#endif
|
174 |
#endif
|
168 |
}
|
175 |
}
|
169 |
|
176 |
|
170 |
|
177 |
|