Object Inspector: Test code for redraw errors in some Windows machines. Cleanup.

git-svn-id: trunk@46885 -
This commit is contained in:
juha 2014-11-19 10:26:20 +00:00
parent 5b6597fee6
commit a8e80b673c

View File

@ -2630,8 +2630,11 @@ begin
begin
if FCurrentEdit is TCheckBox then
begin
TCheckBox(FCurrentEdit).Top := EditCompRect.Top;
TCheckBox(FCurrentEdit).Left := EditCompRect.Left;
FCurrentEdit.Top := EditCompRect.Top;
FCurrentEdit.Left := EditCompRect.Left;
// For testing: Try to prevent redraw errors in some Windows machines.
//Canvas.Brush.Color := FBackgroundColor;
//Canvas.FillRect(EditCompRect);
end
else
FCurrentEdit.BoundsRect:=EditCompRect;