Minor fix

This commit is contained in:
Doublestrike
2011-08-27 12:51:09 +00:00
parent 0a4a9f6501
commit 8755ce80c2

View File

@@ -188,7 +188,7 @@ public class ProgressBar_Base extends JProgressBar implements ProgressBar_Interf
* @see forge.view.util.ProgressBar_Interface#setTotalUnitsThisPhase(long)
*/
public void setTotalUnitsThisPhase(long value) {
// Doublestrike - why is this called twice?
// Doublestrike sez - why is this called twice?
if (value > Integer.MAX_VALUE) {
throw new IllegalArgumentException("numUnits must be <= " + Integer.MAX_VALUE);
@@ -197,7 +197,6 @@ public class ProgressBar_Base extends JProgressBar implements ProgressBar_Interf
this.totalUnitsThisPhase = value;
// (Temporary solution until I know a better way)
System.out.println(value);
this.setProgressRange(0,(int)value);
}
}