LCL: maskedit: always set FChangeAllowed to false

git-svn-id: trunk@21834 -
This commit is contained in:
mattias 2009-09-23 11:52:47 +00:00
parent 495f9f3481
commit a661ce3a4e

View File

@ -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;