mirror of
https://github.com/crosspoint-reader/crosspoint-reader.git
synced 2026-04-29 10:26:52 -07:00
Return -1 from getTocIndexForSpineIndex if TOC item does not exist
This commit is contained in:
+1
-2
@@ -299,6 +299,5 @@ int Epub::getTocIndexForSpineIndex(const int spineIndex) const {
|
||||
}
|
||||
|
||||
Serial.printf("[%lu] [EBP] TOC item not found\n", millis());
|
||||
// not found - default to first item
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user