From b81e99f438b0d26b183183457d840016509e7900 Mon Sep 17 00:00:00 2001 From: bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Sun, 17 May 2015 14:27:37 +0000 Subject: [PATCH] MaskEdit: fix RestoreMask. git-svn-id: trunk@49069 - --- lcl/maskedit.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lcl/maskedit.pp b/lcl/maskedit.pp index 3ef58c8a82..3b903b4952 100644 --- a/lcl/maskedit.pp +++ b/lcl/maskedit.pp @@ -1033,6 +1033,9 @@ begin begin Result := False; end; + // if NewText = old Text the next statement will do nothing, + // and NO mask will appear, so Clear first ... + Clear; Text := NewText; end;