mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +02:00
parent
b834f60a49
commit
07301de359
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user