Skip to content
Snippets Groups Projects
Commit aa014dd3 authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

bugfix - doesn't the colors always have to be sorted? Bug appears after the...

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
parent 4a72b550
No related branches found
No related tags found
No related merge requests found
...@@ -68,9 +68,14 @@ mapping _decode( string what, void|mapping opts ) ...@@ -68,9 +68,14 @@ mapping _decode( string what, void|mapping opts )
if(sizeof(data) < ncolors+2) if(sizeof(data) < ncolors+2)
error("Too few elements in array to decode color values\n"); error("Too few elements in array to decode color values\n");
array colors; array colors;
if(cpp < 4)
colors = data[1..ncolors]; // kludge? probable FIXME?
else // 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]); colors = sort(data[1..ncolors]);
TD("Creating images"); TD("Creating images");
object i = Image.image( width, height ); object i = Image.image( width, height );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment