changeset 635:cc4c031069c0

*** empty log message ***
author david <david>
date Thu, 20 Oct 1994 10:56:00 +0000
parents f7cd6fca9df7
children ab8d88dca641
files volume_io/Volumes/output_mnc.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/volume_io/Volumes/output_mnc.c
+++ b/volume_io/Volumes/output_mnc.c
@@ -544,11 +544,11 @@
     /*--- now write entire volume in contiguous chunks (possibly only 1 req'd)*/
 
     n_steps = 1;
-    for_less( i, 0, first_vol_index )
-        n_steps *= sizes[i];
+    for_less( d, 0, first_vol_index )
+        n_steps *= sizes[d];
     step = 0;
 
-    initialize_progress( &progress, FALSE, n_steps,"Outputting Volume" );
+    initialize_progress_report( &progress, FALSE, n_steps,"Outputting Volume" );
 
     increment = FALSE;
     while( !increment )
@@ -612,7 +612,8 @@
 
         ++step;
 
-        update_progress_report( &progress, step );
+        if( n_steps > 1 )
+            update_progress_report( &progress, step );
     }
 
     terminate_progress_report( &progress );