LCL/EditBtn: Fix detection of incorrect center date string element by ParseDate(). https://forum.lazarus.freepascal.org/index.php/topic,51008.msg373806/

git-svn-id: trunk@63728 -
This commit is contained in:
wp 2020-08-13 08:20:57 +00:00
parent c00ae1a4b3
commit 0ba97f3388

View File

@ -1703,7 +1703,7 @@ begin
If (P=0) then
Exit;
N2:=StrToIntDef(Copy(S,1,P-1),-1);
If (N1=0) then Exit;
If (N2=-1) then Exit;
Delete(S,1,P);
N3:=StrToIntDef(S,-1);
If (N3=-1) then