From 83f18659d38744f13193bc8fe538e85680090aab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Jan 2020 17:47:12 +0000 Subject: [PATCH] [Minor] Lua_content: Similar hang fix --- lualib/lua_content/pdf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index b3fa03f284..fa3aee501d 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -695,7 +695,7 @@ local function offsets_to_blocks(starts, ends, out) } start_pos = start_pos + 1 end_pos = end_pos + 1 - elseif start_pos > end_pos then + elseif first > last then end_pos = end_pos + 1 else -- Not ordered properly! -- 2.47.3