--- 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 $'
! !