TvPlanIt: Avoid crash when TVpSchedule.DeleteEvent is called with Event=nil.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8661 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-12-28 21:54:06 +00:00
parent e8f3ec64b1
commit 4234ecf141

View File

@ -1855,6 +1855,8 @@ end;
list. }
procedure TVpSchedule.DeleteEvent(Event: TVpEvent);
begin
if Event = nil then
exit;
Event.Deleted := true;
Owner.EventsDirty := true;
end;