Formatting.

This commit is contained in:
Jonas Diemer 2025-12-17 12:40:45 +01:00
parent 12463011b7
commit 40f86dd04f

View File

@ -317,12 +317,10 @@ int Epub::getTocIndexForSpineIndex(const int spineIndex) const {
return -1; return -1;
} }
size_t Epub::getBookSize() const { size_t Epub::getBookSize() const { return getCumulativeSpineItemSize(getSpineItemsCount() - 1); }
return getCumulativeSpineItemSize(getSpineItemsCount() - 1);
}
// Calculate progress in book // Calculate progress in book
uint8_t Epub::calculateProgress(const int currentSpineIndex, const float currentSpineRead){ uint8_t Epub::calculateProgress(const int currentSpineIndex, const float currentSpineRead) {
size_t prevChapterSize = getCumulativeSpineItemSize(currentSpineIndex - 1); size_t prevChapterSize = getCumulativeSpineItemSize(currentSpineIndex - 1);
size_t curChapterSize = getCumulativeSpineItemSize(currentSpineIndex) - prevChapterSize; size_t curChapterSize = getCumulativeSpineItemSize(currentSpineIndex) - prevChapterSize;
size_t bookSize = getBookSize(); size_t bookSize = getBookSize();