diff --git a/frontend/apps/reader/modules/readerpaging.lua b/frontend/apps/reader/modules/readerpaging.lua index 5ce586583..92d37c071 100644 --- a/frontend/apps/reader/modules/readerpaging.lua +++ b/frontend/apps/reader/modules/readerpaging.lua @@ -590,10 +590,7 @@ function ReaderPaging:getBookLocation() if ctx then -- We need a copy, as we're getting references to -- objects ReaderPaging/ReaderView may still modify - local current_location = {} - for i=1, #ctx do - current_location[i] = util.tableDeepCopy(ctx[i]) - end + local current_location = util.tableDeepCopy(ctx) return current_location end end