TCustomCheckBoxThemed.PaintSelf: fix calculating the y pos, if there is no caption.

git-svn-id: trunk@59664 -
This commit is contained in:
martin 2018-11-26 11:18:12 +00:00
parent a625b39fbf
commit 743dfad3a9

View File

@ -387,7 +387,7 @@ begin
aCheckBoxPoint.X := ARect.Left
else
aCheckBoxPoint.X := ARect.Right - CheckBoxSize.cx;
aCheckBoxPoint.Y := (ARect.Bottom - CheckBoxSize.cy) div 2;
aCheckBoxPoint.Y := ARect.Top + (ARect.Bottom - ARect.Top - CheckBoxSize.cy) div 2;
end;
{ Paint Caption }
if ACaption <> '' then begin