mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 18:32:39 +02:00
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:
parent
a81c96ca0d
commit
dccf31997b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user