fixed: crash due to small layout elements (thanks to hsoft)
parent
24cd161fb7
commit
46bb0107aa
|
@ -106,7 +106,7 @@ def fsplit(pred, objs):
|
||||||
def drange(v0, v1, d):
|
def drange(v0, v1, d):
|
||||||
"""Returns a discrete range."""
|
"""Returns a discrete range."""
|
||||||
assert v0 < v1
|
assert v0 < v1
|
||||||
return xrange(int(v0)/d, int(v1+d-1)/d)
|
return xrange(int(v0)/d, int(v1+d)/d)
|
||||||
|
|
||||||
# get_bound
|
# get_bound
|
||||||
def get_bound(pts):
|
def get_bound(pts):
|
||||||
|
|
Loading…
Reference in New Issue