Browse Source

scan to end of line even if longer

pull/149/head
Scott Williams 9 years ago
parent
commit
69daa8464a
  1. 3
      src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs

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

@ -150,7 +150,8 @@ namespace ImageSharp.Drawing.Processors
}
int nextX = startX + 1;
if (nextX >= 0 && endX < scanline.Length)
endX = Math.Min(endX, scanline.Length); // reduce to end to the right edge
if (nextX >= 0)
{
for (int x = nextX; x < endX; x++)
{

Loading…
Cancel
Save