TvPlanIt: More robust comparison of TTime variables.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2021-12-13 21:25:57 +00:00
parent ed6fcb4083
commit a94f08651f
2 changed files with 10 additions and 1 deletions

View File

@ -1930,7 +1930,7 @@ begin
ThisTime := 0.0;
while (J < EventList.Count) and (J < MaxVisibleEvents) do begin
event := EventList[J];
if frac(event.StartTime) >= thisTime then begin
if SameTime(frac(event.StartTime), thisTime) or (frac(event.StartTime) > thisTime) then begin
thisTime := frac(event.EndTime);
{ Handle end times of midnight }
if thisTime = 0 then