LCL: Make fix for Issue #0031227 a bit more safe (don't rely on implementation details of TryParseInput).

git-svn-id: trunk@53947 -
This commit is contained in:
bart 2017-01-15 12:27:08 +00:00
parent a81c96ca0d
commit dccf31997b

View File

@ -2073,9 +2073,11 @@ end;
{ TTimeEdit }
function TTimeEdit.GetTime: TDateTime;
var
TmpResult: TDateTime;
begin
if DirectInput then
TryParseInput(Text, FTime);
if DirectInput and TryParseInput(Text, TmpResult) then
FTime := TmpResult;
Result := FTime;
if IsEmptyTime then begin
if FDefaultNow then