Skip to content

Commit

Permalink
Fix embarrassing bug: Put ALL input colors into the output colormap.
Browse files Browse the repository at this point in the history
Vladimir Panteleev report.
  • Loading branch information
kohler committed Sep 23, 2014
1 parent f42290d commit 3901edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimize.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void all_colormap_add(const Gif_Colormap* src) {
Gif_ReArray(all_colormap->col, Gif_Color, all_colormap->capacity);
}

for (i = 1; i < src->ncol; ++i) {
for (i = 0; i < src->ncol; ++i) {
kchistitem* khi = kchist_add(&all_colormap_hist,
kc_makegfc(&src->col[i]), 0);
if (!khi->count) {
Expand Down

0 comments on commit 3901edf

Please sign in to comment.