Ignore:
Timestamp:
5/16/2010 12:31:18 PM (2 years ago)
Author:
lowjoel
Message:

Some parameter validation in ProgressManagerStep?'s constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/ProgressManager.cs

    r1972 r2152  
    647647        public SteppedProgressManagerStep(ProgressManagerBase progress, float weight, string name) 
    648648        { 
     649            if (float.IsInfinity(weight) || float.IsNaN(weight)) 
     650                throw new ArgumentException(S._("The weight of a progress manager step must be " + 
     651                    "a valid floatint-point value.")); 
     652 
    649653            Progress = progress; 
    650654            Weight = weight; 
Note: See TracChangeset for help on using the changeset viewer.