We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0c9e7c commit c46c07dCopy full SHA for c46c07d
1 file changed
Source/simba.vartype_pointarray.pas
@@ -1118,8 +1118,7 @@ function TPointArrayHelper.Erode(Iterations: Integer): TPointArray;
1118
B: TBox;
1119
begin
1120
Result := Default(TPointArray);
1121
- Iterations -= 1;
1122
- if (Length(Self) = 0) or (Iterations < 0) then
+ if (Length(Self) = 0) or (Iterations = 0) then
1123
Exit;
1124
1125
B := Self.Bounds();
@@ -1173,7 +1172,7 @@ function TPointArrayHelper.Erode(Iterations: Integer): TPointArray;
1173
1172
end;
1174
1175
Inc(J);
1176
- until (J >= Iterations);
+ until (J >= Iterations-1);
1177
1178
QueueA.Clear();
1179
for Y := 0 to B.Y2-1 do
0 commit comments