diff --git a/invesalius/utils.py b/invesalius/utils.py index b16d0e7..2a0d86f 100755 --- a/invesalius/utils.py +++ b/invesalius/utils.py @@ -69,7 +69,7 @@ def frange(start, end=None, inc=None): end = start + 0.0 start = 0.0 - if inc == None: + if (inc == None) or (inc == 0): inc = 1.0 L = [] @@ -81,4 +81,4 @@ def frange(start, end=None, inc=None): break L.append(next) - return L \ No newline at end of file + return L -- libgit2 0.21.2