Branch: Tag:

2003-01-31

2003-01-31 07:59:15 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

bugfix - doesn't the colors always have to be sorted? Bug appears after the main testsuite is run on large INT_TYPE linux systems

Rev: lib/modules/_Image_XPM.pmod:1.14

68:    if(sizeof(data) < ncolors+2)    error("Too few elements in array to decode color values\n");    array colors; -  if(cpp < 4) -  colors = data[1..ncolors]; -  else +  + // kludge? probable FIXME? + // I can't see why the colors not always must be sorted... + // /Mirar 2003-01-31 +  + // if(cpp < 4) + // colors = data[1..ncolors]; + // else    colors = sort(data[1..ncolors]);    TD("Creating images");    object i = Image.image( width, height );