Skip to content

Commit

Permalink
Merge pull request #249 from wcout/issue_240
Browse files Browse the repository at this point in the history
Fix for #240: Bug: "else" missing
  • Loading branch information
memononen authored Nov 22, 2023
2 parents cb0ae54 + 48ad4ba commit 706eb06
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 706eb06

Please sign in to comment.