From f102404a6c2951b30c3ed71d63b71f8719173197 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Thu, 13 Oct 2022 22:01:36 +0000 Subject: [PATCH] tvplanit/GanttView: Fix recurring events running beyond Gantt' EndDate. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8554 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpganttview.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/tvplanit/source/vpganttview.pas b/components/tvplanit/source/vpganttview.pas index 61372081c..d1be213db 100644 --- a/components/tvplanit/source/vpganttview.pas +++ b/components/tvplanit/source/vpganttview.pas @@ -483,6 +483,8 @@ begin end; if dt2 >= AEvent.RepeatRangeEnd then break; + if dt1 > FEndDate then + break; end; end;