Commit 14de95477b3824b0569b3239630ccb4502ea5777

Authored by tfmoraes
1 parent 4a53fe13

Resolving the problem with numeric precision error in progress when loading dicom files

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/vtk_utils.py
@@ -80,7 +80,7 @@ def ShowProgress(number_of_filters = 1, @@ -80,7 +80,7 @@ def ShowProgress(number_of_filters = 1,
80 ps.Publisher().sendMessage('Update status in GUI', 80 ps.Publisher().sendMessage('Update status in GUI',
81 (progress[0], label)) 81 (progress[0], label))
82 else: 82 else:
83 - if (int(progress[0]) == 99): 83 + if (progress[0] >= 99.999):
84 progress[0] = 100 84 progress[0] = 100
85 85
86 if not(dlg.Update(progress[0],label)): 86 if not(dlg.Update(progress[0],label)):