* Allow width 0 (bug ID 23662)

git-svn-id: trunk@26722 -
This commit is contained in:
michael 2014-02-08 11:43:14 +00:00
parent 68429834a7
commit 576eadf6c9

View File

@ -21,8 +21,8 @@ end;
procedure TFPCustomPen.SetWidth (AValue : Integer);
begin
if AValue < 1 then
FWidth := 1
if AValue < 0 then
FWidth := 0
else
FWidth := AValue;
end;