mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 12:41:21 +02:00
fixed setting TMaskEdit.Text while handle not allocated
git-svn-id: trunk@4590 -
This commit is contained in:
parent
78d8cb65a4
commit
1ac4440607
@ -658,9 +658,11 @@ end;
|
|||||||
|
|
||||||
procedure TCustomMaskEdit.SetEditText(const Value: string);
|
procedure TCustomMaskEdit.SetEditText(const Value: string);
|
||||||
begin
|
begin
|
||||||
if GetEditText <> Value then
|
if GetEditText <> Value then begin
|
||||||
begin
|
if HandleAllocated then
|
||||||
SetTextBuf(PChar(Value));
|
SetTextBuf(PChar(Value))
|
||||||
|
else
|
||||||
|
inherited Text:=Value;
|
||||||
CheckCursor;
|
CheckCursor;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user