lcl: coolbar: fix double-if from r55426 #f06f1ef334. issue

git-svn-id: trunk@55431 -
This commit is contained in:
ondrej 2017-07-03 13:57:06 +00:00
parent 3f793b533d
commit b6a11cc0d9

View File

@ -244,10 +244,9 @@ end;
function TToolBar.IsVertical: Boolean;
begin
if Assigned(Parent) then begin
if (Parent is TCoolBar) then
exit((Parent as TCoolBar).Vertical);
end;
if (Parent is TCoolBar) then
Exit(TCoolBar(Parent).Vertical);
if Align in [alNone, alClient, alCustom] then
Result := Height > Width
else