This commit is contained in:
NogNoa 2023-06-24 00:21:47 +03:00
commit 3321d27ef7
7 changed files with 6 additions and 3 deletions

BIN
recipes/icons/fifty_two.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

View File

@ -98,7 +98,7 @@ class LiveMint(BasicNewsRecipe):
classes(
'trendingSimilarHeight moreNews mobAppDownload label msgError msgOk taboolaHeight'
' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot'
' datePublish sepStory'
' datePublish sepStory premiumSlider'
)
]

View File

@ -392,7 +392,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) {
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
unsigned base_page_index = dest->GetPages().GetCount();
#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0)
dest->GetPages().CreatePagesAt(base_page_index, Rect(), total_pages_to_append);
dest->GetPages().CreatePagesAt(base_page_index, total_pages_to_append, Rect());
#else
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
#endif

View File

@ -95,7 +95,10 @@ def range_extents(q, in_flow_mode):
end = q.cloneRange()
def rect_onscreen(r):
if r.right <= window.innerWidth and r.bottom <= window.innerHeight and r.left >= 0 and r.top >= 0:
# we use -1 rather than zero for the top limit because on some
# platforms the browser engine returns that for top line selections.
# See https://bugs.launchpad.net/calibre/+bug/2024375/ for a test case.
if r.right <= window.innerWidth and r.bottom <= window.innerHeight and r.left >= 0 and r.top >= -1:
return True
return False