mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 22:39:07 +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
|
||||
procedure TCustomMaskEdit.SetInheritedText(const Value: String);
|
||||
var
|
||||
OldChange: Boolean;
|
||||
begin
|
||||
if Value <> Inherited Text then
|
||||
begin
|
||||
OldChange:=FChangeAllowed;
|
||||
FChangeAllowed := True;
|
||||
try
|
||||
Inherited Text := Value;
|
||||
finally
|
||||
FChangeAllowed := OldChange;
|
||||
FChangeAllowed := False;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user