From 14de95477b3824b0569b3239630ccb4502ea5777 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Wed, 25 May 2011 12:19:02 +0000 Subject: [PATCH] Resolving the problem with numeric precision error in progress when loading dicom files --- invesalius/data/vtk_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/vtk_utils.py b/invesalius/data/vtk_utils.py index 7f2e0a1..c57393f 100644 --- a/invesalius/data/vtk_utils.py +++ b/invesalius/data/vtk_utils.py @@ -80,7 +80,7 @@ def ShowProgress(number_of_filters = 1, ps.Publisher().sendMessage('Update status in GUI', (progress[0], label)) else: - if (int(progress[0]) == 99): + if (progress[0] >= 99.999): progress[0] = 100 if not(dlg.Update(progress[0],label)): -- libgit2 0.21.2