diff options
| -rw-r--r-- | src/xfns.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 9bc400627ec..edd718b6b89 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -6536,7 +6536,12 @@ xpm_load (f, img) | |||
| 6536 | img->colors = (unsigned long *) xmalloc (img->ncolors | 6536 | img->colors = (unsigned long *) xmalloc (img->ncolors |
| 6537 | * sizeof *img->colors); | 6537 | * sizeof *img->colors); |
| 6538 | for (i = 0; i < attrs.nalloc_pixels; ++i) | 6538 | for (i = 0; i < attrs.nalloc_pixels; ++i) |
| 6539 | img->colors[i] = attrs.alloc_pixels[i]; | 6539 | { |
| 6540 | img->colors[i] = attrs.alloc_pixels[i]; | ||
| 6541 | #ifdef DEBUG_X_COLORS | ||
| 6542 | register_color (img->colors[i]); | ||
| 6543 | #endif | ||
| 6544 | } | ||
| 6540 | 6545 | ||
| 6541 | img->width = attrs.width; | 6546 | img->width = attrs.width; |
| 6542 | img->height = attrs.height; | 6547 | img->height = attrs.height; |