aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/predictivedialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp
index d9dd5734f8..9557da1206 100644
--- a/gui/predictivedialog.cpp
+++ b/gui/predictivedialog.cpp
@@ -724,6 +724,10 @@ int PredictiveDialog::binarySearch(const char *const *const dictLine, const Comm
}
bool PredictiveDialog::matchWord() {
+ // If there is no dictionary, then there is no match.
+ if (_unitedDict.dictLineCount <= 0)
+ return false;
+
// If no text has been entered, then there is no match.
if (_currentCode.empty())
return false;