lcl: coolbar: fix double-if from r55428 #e5fe561452. issue #32027

git-svn-id: trunk@55430 -
This commit is contained in:
ondrej 2017-07-03 13:52:14 +00:00
parent f6cc92a276
commit 3f793b533d

View File

@ -577,8 +577,7 @@ begin
for i := 0 to aCountM1 do begin
if aRowEnd or FVisiBands[i].Break then
aLeft := aBorderLeft;
if Assigned(FVisiBands[i].Control)then
if FVisiBands[i].Control is TToolBar then
if FVisiBands[i].Control is TToolBar then
begin
if TToolBar(FVisiBands[i].Control).IsVertical then
TToolBar(FVisiBands[i].Control).WrapButtons(Height,NewWidth,NewHeight,true)