disable word OCR for now

Since it will crash the reader with a strange error message saying
"terminate called after throwing an instance of 'DJVU::GException'"
even though only PDF file is opened.
This commit is contained in:
chrox
2013-04-24 09:13:20 +08:00
parent 936dfc6fd1
commit 46c605d256
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ end
function ReaderDictionary:onLookupWord(word)
DEBUG("lookup word:", word)
if self.lipc_handle then
if self.lipc_handle and word then
-- start indicator depends on pillow being enabled
self.lipc_handle:set_string_property(
"com.lab126.booklet.kpvbooklet.dict", "lookup", word)