Commit d52865d
committed
Fix the math in the test page navigation.
I had the math wrong in #2818. It is correct if the number of problems
does not evenly divide the number of problems per page, but if it does
then the modulus returns 0. In that case it should also use the number
of problems per page.1 parent d712732 commit d52865d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
463 | 465 | | |
464 | 466 | | |
465 | 467 | | |
| |||
0 commit comments