DockedFormEditor: bugfix for "divide by zero" exception for decked design forms created for TComponent descendants used as root.

git-svn-id: trunk@50440 -
This commit is contained in:
hnb 2015-11-20 13:43:15 +00:00
parent f2c0815f29
commit 25a0220972

View File

@ -278,10 +278,10 @@ begin
2: Result := LClientRect.Right;
3: Result := LClientRect.Bottom;
end;
end;
end;
//else
//Result := inherited GetPublishedBounds(AIndex);
end
else
Result := 0; //inherited GetPublishedBounds(AIndex);
end
end;
procedure TDesignedNonControlFormImpl.SetPublishedBounds(AIndex: Integer;
@ -625,7 +625,7 @@ begin
Width := LClientRect.Right;
Height := LClientRect.Bottom;
end else
;//WriteLn('o kurwa eh');
Width := 1;
DesignedForm.RealWidth := Width;
DesignedForm.RealHeight := Height;