Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/17 13:53:08 (5 years ago)
Author:
pfleck
Message:

#1666 Adapted ProgressView so that 0 is a valid ProgressValue. Small refactorings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SimplifierViewsProgress/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs

    r14297 r15320  
    146146        try {
    147147          Invoke((Action)UpdateProgressValue);
    148         }
    149         catch (InvalidOperationException) {
     148        } catch (InvalidOperationException) {
    150149          // swallow ObjectDisposedException
    151150          // which might occur if the invoke call is executed after or while the control is disposing
     
    154153        if (content != null) {
    155154          double progressValue = content.ProgressValue;
    156           if (progressValue <= 0.0 || progressValue > 1.0) {
     155          if (progressValue < 0.0 || progressValue > 1.0) {
    157156            progressBar.Style = ProgressBarStyle.Marquee;
    158157          } else {
Note: See TracChangeset for help on using the changeset viewer.