Changeset 10633


Ignore:
Timestamp:
May 9, 2011, 8:15:29 PM (9 years ago)
Author:
tbretz
Message:
Fixed case of sclaing in Rates plot == 0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r10621 r10633  
    184184
    185185        const double min   = fData.min();
    186         const double scale = fData.max()-fData.min();
     186        const double scale = fData.max()==fData.min() ? 1 : fData.max()-fData.min();
    187187
    188188        TAttFill fill(0, 1001);
     
    194194            if (fBold[cnt])
    195195                continue;
    196 
    197196
    198197            const int col = (fData[cnt]-min)/scale*(fPalette.size()-1);
Note: See TracChangeset for help on using the changeset viewer.