From 38bbe0f2271d90256c6f9006569f7d74f06192e4 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 17 Apr 2012 18:08:49 +0200 Subject: [PATCH] showInfoMsgWithDelay for highlight --- unireader.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unireader.lua b/unireader.lua index ad8125e10..7d2553339 100644 --- a/unireader.lua +++ b/unireader.lua @@ -332,6 +332,7 @@ end function UniReader:startHighLightMode() local t = self:getText(self.pageno) if not t or #t == 0 then + showInfoMsgWithDelay("No text available for highlight",1); return nil end @@ -342,6 +343,7 @@ function UniReader:startHighLightMode() end end + showInfoMsgWithDelay("No visible text for highlight",1); print("## _findFirstWordInView none found in "..dump(t)) return nil @@ -498,6 +500,7 @@ function UniReader:startHighLightMode() l.start, w.start = _findFirstWordInView(t) if not l.start then print("# no text in current view!") + -- InfoMessage about reason already shown return end