ObjectInspector: fix wrong ifdef.

git-svn-id: trunk@51303 -
This commit is contained in:
bart 2016-01-15 22:12:21 +00:00
parent 07d5c8bea6
commit 363ef73d76

View File

@ -2677,7 +2677,7 @@ begin
{$ENDIF}
Dec(EditCompRect.Top);
end
else if FCurrentEdit is {$IFDEF UseOICheckBoxThemed} TCheckBoxThemed {$ELSE} TCheckBox {$ENDIF} then
else if FCurrentEdit is {$IFnDEF UseOINormalCheckBox} TCheckBoxThemed {$ELSE} TCheckBox {$ENDIF} then
begin // Align CheckBox to the middle vertically
TopMargin := (EditCompRect.Bottom - EditCompRect.Top - ValueCheckBox.Height) div 2;
Inc(EditCompRect.Top, TopMargin);