mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 02:38:03 +02:00
LCL: in TMaskEdit.RestoreMask only clear the control if it is actually masked. Issue #0028477.
git-svn-id: trunk@49595 -
This commit is contained in:
parent
e86a17db5b
commit
55e1744d9c
@ -1057,9 +1057,10 @@ begin
|
||||
begin
|
||||
Result := False;
|
||||
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 ...
|
||||
Clear;
|
||||
if IsMasked then Clear;
|
||||
Text := NewText;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user