Commit ef9b8c2544aa6967d2f36844815506960e223c04

Authored by tatiana
1 parent c249c3db

FIX: #70 Memory error under darwin

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/utils.py
... ... @@ -69,7 +69,7 @@ def frange(start, end=None, inc=None):
69 69 end = start + 0.0
70 70 start = 0.0
71 71  
72   - if inc == None:
  72 + if (inc == None) or (inc == 0):
73 73 inc = 1.0
74 74  
75 75 L = []
... ... @@ -81,4 +81,4 @@ def frange(start, end=None, inc=None):
81 81 break
82 82 L.append(next)
83 83  
84   - return L
85 84 \ No newline at end of file
  85 + return L
... ...