Changeset 7521


Ignore:
Timestamp:
06/29/18 13:30:06 (3 weeks ago)
Author:
paulf
Message:

cleaned up some for loops, thanks larry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reporting/gmewhtmlemail/gmewhtmlemail.c

    r7503 r7521  
    3131 *****************************************************************************/ 
    3232 
    33 #define VERSION_STR "1.7.7 - 2018-06-27" 
     33#define VERSION_STR "1.7.8 - 2018-06-29" 
    3434 
    3535#define MAX_STRING_SIZE 1024    /* used for many static string place holders */ 
     
    38103810{ 
    38113811    int i; 
     3812    int cap; 
    38123813    char temp[MAX_GET_CHAR]; 
    38133814 
     
    38403841    /* Add icons for facilities 
    38413842    **************************/ 
    3842     for ( i=0; i<dam_close_count>damMapLimit ? damMapLimit : dam_close_count && i<26; i++ ) 
     3843    cap = dam_close_count>damMapLimit ? damMapLimit : dam_close_count; 
     3844    for ( i=0; i<cap && i<26; i++ ) 
    38433845    { 
    38443846//       snprintf( temp, MAX_GET_CHAR, "%s&markers=color:blue%%7Clabel:%d%%7Cshadow:false%%7C%f,%f", 
     
    38593861        } */ 
    38603862 
    3861     for ( ; i<dam_close_count>damMapLimit ? damMapLimit : dam_close_count; i++ ) 
     3863    for (i=0 ; i<cap; i++ ) 
    38623864    { 
    38633865        snprintf( temp, MAX_GET_CHAR, "%s&markers=icon:http:%%2F%%2Fmaps.google.com%%2Fmapfiles" 
     
    38833885{ 
    38843886    int i; 
    3885         int ix; 
     3887    int ix; 
    38863888    int snl_i; 
    3887         int cap; 
     3889    int cap; 
    38883890 
    38893891    /* Base of the google static map 
Note: See TracChangeset for help on using the changeset viewer.