mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Fixed an off by 1 issue with reading manga (for real now)
This commit is contained in:
parent
9a50241734
commit
852317d3a6
@ -113,7 +113,7 @@ namespace API.Services
|
|||||||
Array.Sort(files, _numericComparer);
|
Array.Sort(files, _numericComparer);
|
||||||
|
|
||||||
// Since array is 0 based, we need to keep that in account (only affects last image)
|
// Since array is 0 based, we need to keep that in account (only affects last image)
|
||||||
if (page - 1 == files.Length)
|
if (page == files.Length)
|
||||||
{
|
{
|
||||||
return (files.ElementAt(page - 1 - pagesSoFar), mangaFile);
|
return (files.ElementAt(page - 1 - pagesSoFar), mangaFile);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user