Changeset 11646 for trunk/FACT++


Ignore:
Timestamp:
07/27/11 10:17:59 (13 years ago)
Author:
tbretz
Message:
Fixed cases in which fThresholdIdx can be negative ('all')
File:
1 edited

Legend:

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

    r11643 r11646  
    27642764    {
    27652765        const uint16_t isw = fThresholdIdx->value();
    2766         const uint16_t ihw = fPatchMapHW[isw];
     2766        const uint16_t ihw = isw<0 ? -1 : fPatchMapHW[isw];
    27672767
    27682768        Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PATCHES_EXCEPT", ihw);
     
    27742774
    27752775        const int32_t isw = fThresholdIdx->value();
    2776         const int32_t ihw = fPatchMapHW[isw];
     2776        const int32_t ihw = isw<0 ? -1 : fPatchMapHW[isw];
    27772777
    27782778        const int32_t d[2] = { ihw, v };
Note: See TracChangeset for help on using the changeset viewer.