Changeset 3278 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jul 6, 2007, 4:30:54 PM (18 years ago)
Author:
ansari
Message:

correction de la fct PIGraphicAtt::ColIndexToColor(int colidx) - Reza 05/07/2007

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigratt.cc

    r3268 r3278  
    219219static GrAttColMaps* GrAcmaps = NULL;
    220220
     221#define GRA_NCOLMX 25
     222static PIColors GrAcolTab[GRA_NCOLMX] =
     223  { PI_Black, PI_White, PI_Grey, PI_Red, PI_Blue, PI_Green, 
     224    PI_Yellow, PI_Magenta, PI_Cyan, PI_Turquoise, PI_NavyBlue, PI_Orange,
     225    PI_SiennaRed, PI_Purple, PI_LimeGreen, PI_Gold, PI_Violet, PI_VioletRed,
     226    PI_BlueViolet, PI_DarkViolet, PI_SkyBlue, PI_RoyalBlue , PI_ForestGreen,
     227    PI_OrangeRed, PI_Brown };
    221228
    222229void PIGraphicAtt::InitGrAttStrings()
     
    902909{
    903910  if (!gratt_init_done) InitGrAttStrings();
    904   GrAttColors& GrAcol = *GrAcolors;
    905   GrAttColors::const_iterator itc;
    906   PIColors cdcol = PI_NotDefColor;
    907   if ((colidx < 0) || (colidx >= GrAcol.size()))  return cdcol;
    908   int kc = 0;
    909   for(itc = GrAcol.begin(); itc != GrAcol.end(); itc++) {
    910     if (kc == colidx) { cdcol = (*itc).second; break; }
    911     kc++;
    912   }
    913   return cdcol;
    914 }
     911  if ((colidx < 0) || (colidx >= GRA_NCOLMX))  return PI_NotDefColor;
     912  return GrAcolTab[colidx];
     913}
  • trunk/SophyaPI/PI/piversion.h

    r3268 r3278  
    22#define PIVERSION_H_SEEN
    33
    4 #define PI_VERSIONNUMBER  4.01
     4#define PI_VERSIONNUMBER  4.02
    55
    66#endif
Note: See TracChangeset for help on using the changeset viewer.