diff options
-rw-r--r-- | Source/TableDump.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index f7fd3a80..fb0504a8 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -1067,7 +1067,7 @@ for ( i = startingRow ; i < totalRows ; i++ ) { // Update the progress bar - [singleProgressBar setDoubleValue:((i+1)*100/totalRows)]; + if (totalRows) [singleProgressBar setDoubleValue:((i+1)*100/totalRows)]; if ((int)[singleProgressBar doubleValue] > lastProgressValue) { lastProgressValue = (int)[singleProgressBar doubleValue]; [singleProgressBar displayIfNeeded]; @@ -1421,7 +1421,7 @@ for ( i = 1 ; i < totalRows ; i++ ) { // Update the progress bar - [singleProgressBar setDoubleValue:((i+1)*100/totalRows)]; + if (totalRows) [singleProgressBar setDoubleValue:((i+1)*100/totalRows)]; if ((int)[singleProgressBar doubleValue] > lastProgressValue) { lastProgressValue = (int)[singleProgressBar doubleValue]; [singleProgressBar displayIfNeeded]; |