Again, try to fix issue #1450

This commit is contained in:
Ansgar Becker
2009-11-11 19:47:07 +00:00
parent c835402544
commit 8f12ca9400

View File

@ -1746,6 +1746,9 @@ var
i, room: Integer;
PanelRect: TRect;
begin
// Exit early when user pressed "Cancel" on connection dialog
if csDestroying in ComponentState then
Exit;
room := 0;
for i := 1 to Statusbar.Panels.Count - 1 do
inc(room, Statusbar.Panels[i].Width);