Browse Source

reduce range check

af/merge-core
Scott Williams 9 years ago
parent
commit
b028126fe3
  1. 2
      src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs

2
src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs

@ -150,7 +150,7 @@ namespace ImageSharp.Drawing.Processors
}
int nextX = startX + 1;
if (nextX >= 0 && nextX < scanline.Length && endX >= 0 && endX < scanline.Length)
if (nextX >= 0 && endX < scanline.Length)
{
for (int x = nextX; x < endX; x++)
{

Loading…
Cancel
Save