* each pixel in reading order. \
*/ \
(im)= alloc_canon_image((w), (h)); \
- (im)->rgb= alloc_rgb_image((w), (h)); \
+ RgbImage *rgb_save; \
+ (im)->rgb= rgb_save= alloc_rgb_image((w), (h)); \
\
int x,y; \
for (y=0; y<(h); y++) { \
for (x=0; x<(w); x++) { \
unsigned char r,g,b; \
COMPUTE_RGB; \
- CANONIMG_ALSO_STORERGB((im)->rgb); \
+ CANONIMG_ALSO_STORERGB(rgb_save); \
(im)->d[y*(w) + x]= canon_lookup_colour(r,g,b); \
} \
if (DEBUGP(rect)) { \