Browse Source

inline variable

af/merge-core
Peter Amrehn 8 years ago
committed by Unknown
parent
commit
b732fae240
  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; fistRow = -startY;
} }
int end = operation.Map.Height;
int maxHeight = source.Height - startY; 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++) for (int row = fistRow; row < end; row++)
{ {

Loading…
Cancel
Save