Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protection against division by zero when scrolling on an empty thumbt…
…able There are different ways to check if the thumbtable is empty (for example, whether the thumbnail list is NULL). But we check whether the thumbnail size is zero as this is exactly what we are interested in, because later we would have to divide by this value, so we protect ourselves from division by zero.
- Loading branch information