Commit f8f2ab10b1c84554b10e229f9090f0afefd20ab4
1 parent
4486c206
Exists in
master
and in
67 other branches
FIX: Problem with dialog in random cases
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/imagedata_utils.py
| @@ -462,7 +462,7 @@ def dcm2memmap(files, slice_size, orientation): | @@ -462,7 +462,7 @@ def dcm2memmap(files, slice_size, orientation): | ||
| 462 | returns it and its related filename. | 462 | returns it and its related filename. |
| 463 | """ | 463 | """ |
| 464 | message = _("Generating multiplanar visualization...") | 464 | message = _("Generating multiplanar visualization...") |
| 465 | - update_progress= vtk_utils.ShowProgress(len(files), dialog_type = "ProgressDialog") | 465 | + update_progress= vtk_utils.ShowProgress(len(files) - 1, dialog_type = "ProgressDialog") |
| 466 | 466 | ||
| 467 | temp_file = tempfile.mktemp() | 467 | temp_file = tempfile.mktemp() |
| 468 | 468 |