mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/NogNoa/calibre
This commit is contained in:
commit
3321d27ef7
BIN
recipes/icons/fifty_two.png
Normal file
BIN
recipes/icons/fifty_two.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 495 B |
BIN
recipes/icons/himal_southasian.png
Normal file
BIN
recipes/icons/himal_southasian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 516 B |
BIN
recipes/icons/press_information_bureau.png
Normal file
BIN
recipes/icons/press_information_bureau.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
recipes/icons/prospectmaguk_free.png
Normal file
BIN
recipes/icons/prospectmaguk_free.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 896 B |
@ -98,7 +98,7 @@ class LiveMint(BasicNewsRecipe):
|
|||||||
classes(
|
classes(
|
||||||
'trendingSimilarHeight moreNews mobAppDownload label msgError msgOk taboolaHeight'
|
'trendingSimilarHeight moreNews mobAppDownload label msgError msgOk taboolaHeight'
|
||||||
' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot'
|
' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot'
|
||||||
' datePublish sepStory'
|
' datePublish sepStory premiumSlider'
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -392,7 +392,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) {
|
|||||||
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
|
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
|
||||||
unsigned base_page_index = dest->GetPages().GetCount();
|
unsigned base_page_index = dest->GetPages().GetCount();
|
||||||
#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0)
|
#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
|
#else
|
||||||
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
|
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
|
||||||
#endif
|
#endif
|
||||||
|
@ -95,7 +95,10 @@ def range_extents(q, in_flow_mode):
|
|||||||
end = q.cloneRange()
|
end = q.cloneRange()
|
||||||
|
|
||||||
def rect_onscreen(r):
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user