mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +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);
|
||||
begin
|
||||
if GetEditText <> Value then
|
||||
begin
|
||||
SetTextBuf(PChar(Value));
|
||||
if GetEditText <> Value then begin
|
||||
if HandleAllocated then
|
||||
SetTextBuf(PChar(Value))
|
||||
else
|
||||
inherited Text:=Value;
|
||||
CheckCursor;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user