Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wcout authored Nov 22, 2023
1 parent cb0ae54 commit 47d1b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosvgrast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opac
if (grad->nstops == 0) {
for (i = 0; i < 256; i++)
cache->colors[i] = 0;
} if (grad->nstops == 1) {
} else if (grad->nstops == 1) {
for (i = 0; i < 256; i++)
cache->colors[i] = nsvg__applyOpacity(grad->stops[i].color, opacity);
} else {
Expand Down

0 comments on commit 47d1b41

Please sign in to comment.