mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
TMaskEdit: fix setting text when mask contains Date- or HourSeparator. Issue #0038606.
git-svn-id: trunk@64772 -
This commit is contained in:
parent
14636b8c38
commit
d9085591b7
@ -1439,7 +1439,7 @@ function TCustomMaskEdit.ApplyMaskToText(Value: TCaption): TCaption;
|
||||
if IsLiteral(i) then
|
||||
begin
|
||||
FoundAt := i;
|
||||
ALiteral := FMask[i].Literal; // ClearChar(i);
|
||||
ALiteral := ClearChar(i);//don't use FMask[i].Literal here, since it is EmptyStr for Char_HourSeparator and Char_DateSeparator; Issue #0038606
|
||||
Result := True;
|
||||
Exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user