[fix][cakegrid] Case of having multiple intervals
For the case that multiple values, i.e. r0 < r1 < r2 are specified, the calculation of number of positions was wrong
For the case that multiple values, i.e. r0 < r1 < r2 are specified, the calculation of number of positions was wrong
mentioned in commit 2a80de00
·mentioned in commit 2a80de00