Browse Source

inline variable

pull/771/head
Peter Amrehn 8 years ago
committed by Unknown
parent
commit
df155496b7
  1. 4
      src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor.cs

4
src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor.cs

@ -139,10 +139,8 @@ namespace SixLabors.ImageSharp.Processing.Processors.Text
fistRow = -startY;
}
int end = operation.Map.Height;
int maxHeight = source.Height - startY;
end = Math.Min(end, maxHeight);
int end = Math.Min(operation.Map.Height, maxHeight);
for (int row = fistRow; row < end; row++)
{

Loading…
Cancel
Save