Browse Source

reduce range check

pull/149/head
Scott Williams 9 years ago
parent
commit
3db50fea44
  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; 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++) for (int x = nextX; x < endX; x++)
{ {

Loading…
Cancel
Save