Merged revision(s) 54495 #bf733a19c0 from trunk:

components: datetimepicker: always update date on CreateWnd. Issue 
........

git-svn-id: branches/fixes_1_6@54516 -
This commit is contained in:
maxim 2017-04-03 23:34:39 +00:00
parent ac2cdad810
commit 3add334c5b

View File

@ -2890,11 +2890,11 @@ procedure TCustomDateTimePicker.CreateWnd;
begin
inherited CreateWnd;
UpdateDate;
if FDoNotArrangeControls then begin { This field is set to True in constructor.
Its purpose is to prevent control anchoring until this point. That's because
on Linux Lazarus crashes when control is dropped on form in designer if
particular anchoring code executes before CreateWnd has done its job. }
UpdateDate;
FDoNotArrangeControls := False;
ArrangeCtrls;
end;