Commit d21397da by Frédéric Boyer

assertion failed with progress bar when empty file

parent 039c87f4
......@@ -90,11 +90,13 @@ cpdef object progressBar(object pos,
if reset:
del delta[:]
step[:]=[1,0,0]
if not delta:
delta.append(clock())
delta.append(clock())
assert maxi>0
if ( maxi<=0):
maxi=1
freq,cycle,arrow = step
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment