Merge pull request #153 from chrox/master

add fixed point procedure for better reflow performance
pull/155/merge
{Qingping,Dave} Hou 11 years ago
commit c8efeb3cc3

@ -355,6 +355,7 @@ function ReaderHighlight:getTextFromPositions(boxes, pos0, pos1)
j_start, j_stop = j_stop, j_start
end
for i = i_start, i_stop do
if i_start == i_stop and #boxes[i] == 0 then break end
-- insert line words
local j0 = i > i_start and 1 or j_start
local j1 = i < i_stop and #boxes[i] or j_stop

@ -1 +1 @@
Subproject commit 7602748511d6abdc4dd2fdf96493261d3d83d32c
Subproject commit 7de326340ee639c79957f5c4e80c47116c0849eb
Loading…
Cancel
Save