mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Revert "Fixed wrong index asigned to current page from the viewer"
This reverts commit 26fdb5a303
.
This commit is contained in:
parent
e405f14256
commit
c9f703b6f7
@ -1189,11 +1189,11 @@ void Viewer::updateComic(ComicDB & comic)
|
||||
//set currentPage
|
||||
if(render->currentPageIsDoublePage() == false)
|
||||
{
|
||||
comic.info.currentPage = render->getIndex();
|
||||
comic.info.currentPage = render->getIndex()+1;
|
||||
}
|
||||
else
|
||||
{
|
||||
comic.info.currentPage = std::min(render->numPages(), render->getIndex()+1);
|
||||
comic.info.currentPage = std::min(render->numPages(), render->getIndex()+2);
|
||||
}
|
||||
//set bookmarks
|
||||
Bookmarks * boomarks = render->getBookmarks();
|
||||
|
Loading…
Reference in New Issue
Block a user