MaskEdit: Fix loading text. Issue #0028328.

git-svn-id: trunk@49368 -
This commit is contained in:
bart 2015-06-19 16:49:10 +00:00
parent b834f60a49
commit 07301de359

View File

@ -1062,6 +1062,12 @@ end;
procedure TCustomMaskEdit.RealSetText(const AValue: TCaption);
begin
//Setting Text while loading has unwanted side-effects
if (csLoading in ComponentState) {and (not FSettingInitialText)} then
begin
FInitialText := AValue;
Exit;
end;
if not IsMasked then
inherited RealSetText(AValue)
else
@ -1080,12 +1086,6 @@ procedure TCustomMaskEdit.SetTextApplyMask(Value: TCaption);
var
S: TCaption;
Begin
//Setting Text while loading has unwanted side-effects
if (csLoading in ComponentState) {and (not FSettingInitialText)} then
begin
FInitialText := Value;
Exit;
end;
if IsMasked then
begin
try