mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-23 13:48:21 +02:00
LCL: maskedit: always set FChangeAllowed to false
git-svn-id: trunk@21834 -
This commit is contained in:
parent
495f9f3481
commit
a661ce3a4e
@ -781,17 +781,14 @@ end;
|
|||||||
|
|
||||||
//Set text in the control with FChangeAllowed flag set appropriately
|
//Set text in the control with FChangeAllowed flag set appropriately
|
||||||
procedure TCustomMaskEdit.SetInheritedText(const Value: String);
|
procedure TCustomMaskEdit.SetInheritedText(const Value: String);
|
||||||
var
|
|
||||||
OldChange: Boolean;
|
|
||||||
begin
|
begin
|
||||||
if Value <> Inherited Text then
|
if Value <> Inherited Text then
|
||||||
begin
|
begin
|
||||||
OldChange:=FChangeAllowed;
|
|
||||||
FChangeAllowed := True;
|
FChangeAllowed := True;
|
||||||
try
|
try
|
||||||
Inherited Text := Value;
|
Inherited Text := Value;
|
||||||
finally
|
finally
|
||||||
FChangeAllowed := OldChange;
|
FChangeAllowed := False;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user