From 9f05d1ba4117d996bd72545892f633233261d8d1 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 11 Oct 2022 15:43:43 +0000 Subject: [PATCH] tvplanit: Fix crash in print format editor when print format control is not on form. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8534 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpprtfmt.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/tvplanit/source/vpprtfmt.pas b/components/tvplanit/source/vpprtfmt.pas index 41c751d60..443673421 100644 --- a/components/tvplanit/source/vpprtfmt.pas +++ b/components/tvplanit/source/vpprtfmt.pas @@ -1586,7 +1586,10 @@ var itGanttView : RenderControl := TVpLinkableControl(FGanttView); end; if FOwner is TVpControlLink then + begin + RenderControl.ControlLink := (FOwner as TVpControlLink); RenderControl.DataStore := (FOwner as TVPControlLink).DataStore; + end; end; if Assigned(RenderControl) then