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