Open SergeySlice opened 6 years ago
if (grad->nstops == 0) { for (i = 0; i < 256; i++) cache->colors[i] = 0; } if (grad->nstops == 1) { for (i = 0; i < 256; i++) cache->colors[i] = nsvg__applyOpacity(grad->stops[i].color, opacity); } else { unsigned int ca, cb = 0;
there must be
} else if (grad->nstops == 1) {
to avoid executing "} else {" if nstops == 0.
there must be
to avoid executing "} else {" if nstops == 0.