mirror of
https://github.com/crosspoint-reader/crosspoint-reader.git
synced 2026-04-29 10:26:52 -07:00
thx @coderabbitai
This commit is contained in:
@@ -454,7 +454,8 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
|
||||
|
||||
// Create page for image - only break if image won't fit remaining space
|
||||
if (self->currentPage && !self->currentPage->elements.empty() &&
|
||||
(self->currentPageNextY + imageMarginTop + displayHeight > self->viewportHeight)) {
|
||||
(self->currentPageNextY + imageMarginTop + displayHeight + imageMarginBottom >
|
||||
self->viewportHeight)) {
|
||||
self->completePageFn(std::move(self->currentPage));
|
||||
self->completedPageCount++;
|
||||
self->currentPage.reset(new Page());
|
||||
|
||||
Reference in New Issue
Block a user