Changeset 19647


Ignore:
Timestamp:
09/15/19 22:22:19 (5 years ago)
Author:
tbretz
Message:
That was the better fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimreflector/MFresnelLens.cc

    r19646 r19647  
    699699        const int step = outgoing ^ !first ? 1 : -1;
    700700        const int end  = outgoing ^ !first ? fGrooves.size() : 1;
    701         const int beg  = j==0 ? ix : ix+step;
    702 
    703         if (step==-1 && ix==1) // can not count downwards from here
    704             continue;
     701        const int beg  = std::max<size_t>(j==0 ? ix : ix+step, 1);
    705702
    706703        for (int i=beg; i!=end; i+=step)
Note: See TracChangeset for help on using the changeset viewer.