changed: #displayProgress:at:from:to:during:
authorClaus Gittinger <cg@exept.de>
Mon, 26 Oct 2009 16:24:04 +0100
changeset 3827 ec0aed04e61f
parent 3826 608aa28e7676
child 3828 3c53c3bbcb37
changed: #displayProgress:at:from:to:during:
ProgressIndicator.st
--- a/ProgressIndicator.st	Sun Oct 25 00:06:53 2009 +0200
+++ b/ProgressIndicator.st	Mon Oct 26 16:24:04 2009 +0100
@@ -640,7 +640,11 @@
                         ] ifFalse:[
                             p showBusyIndication:false.
                             oldPercentage := progressValue value.
-                            newPercentage := (scaledValue - startValue) / (endValue-startValue) * 100.
+                            endValue = startValue ifTrue:[
+                                newPercentage := 0.
+                            ] ifFalse:[
+                                newPercentage := (scaledValue - startValue) / (endValue-startValue) * 100.
+                            ].
                             newPercentage ~= oldPercentage ifTrue:[
                                 progressValue value:newPercentage.
                             ].
@@ -1236,5 +1240,9 @@
 !ProgressIndicator class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.59 2009-09-18 16:09:36 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.60 2009-10-26 15:24:04 cg Exp $'
+!
+
+version_CVS
+    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.60 2009-10-26 15:24:04 cg Exp $'
 ! !