Skip to content

Commit

Permalink
Check border of color table while generating gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
mymedia2 authored and smohantty committed Jan 7, 2022
1 parent d1636c7 commit 8756269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/vdrawhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ bool VGradientCache::generateGradientColorTable(const VGradientStops &stops,

colorTable[pos++] = curColor;

while (fpos <= curr->first) {
while (fpos <= curr->first && pos < size) {
colorTable[pos] = colorTable[pos - 1];
pos++;
fpos += incr;
Expand Down

0 comments on commit 8756269

Please sign in to comment.