mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 04:42:38 +02:00
Merged revision(s) 49595 #55e1744d9c from trunk:
LCL: in TMaskEdit.RestoreMask only clear the control if it is actually masked. Issue #0028477. ........ git-svn-id: branches/fixes_1_4@49638 -
This commit is contained in:
parent
27d41ed484
commit
79319c7002
@ -1052,9 +1052,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
end;
|
end;
|
||||||
// if NewText = old Text the next statement will do nothing,
|
// if NewText = old Text AND the control is now masked,
|
||||||
|
// then "Text := NewText" will do nothing,
|
||||||
// and NO mask will appear, so Clear first ...
|
// and NO mask will appear, so Clear first ...
|
||||||
Clear;
|
if IsMasked then Clear;
|
||||||
Text := NewText;
|
Text := NewText;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user