From 8b3b2b0eb113426be0d817415033b6a12d201a48 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 2 Mar 2018 18:03:12 +0100 Subject: [PATCH] [fix] Better error handling when MuPDF document has no pages (#3710) It happens in base so we don't have to worry about it in front. References https://github.com/koreader/koreader/issues/3705 --- base | 2 +- frontend/document/pdfdocument.lua | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/base b/base index c629cd88b..aafc74835 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit c629cd88b729edfd13962bd664a0d64b4efc3cb0 +Subproject commit aafc74835bfd1bc53d34d31b8f2efdc9be3d7bbe diff --git a/frontend/document/pdfdocument.lua b/frontend/document/pdfdocument.lua index a2a112da0..193cb152a 100644 --- a/frontend/document/pdfdocument.lua +++ b/frontend/document/pdfdocument.lua @@ -40,10 +40,6 @@ function PdfDocument:init() else self:_readMetadata() end - -- TODO: handle this - -- if not (self.info.number_of_pages > 0) then - --error("No page found in PDF file") - -- end end function PdfDocument:preRenderPage()