fixed: crash due to small layout elements (thanks to hsoft)

pull/1/head
Yusuke Shinyama 2011-07-31 17:44:09 +10:00
parent 24cd161fb7
commit 46bb0107aa
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def fsplit(pred, objs):
def drange(v0, v1, d):
"""Returns a discrete range."""
assert v0 < v1
return xrange(int(v0)/d, int(v1+d-1)/d)
return xrange(int(v0)/d, int(v1+d)/d)
# get_bound
def get_bound(pts):