From ad82eacee5dde4442cd9e01d11a4407a14c7c358 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Sun, 11 Sep 2016 08:23:51 +0000 Subject: [PATCH] tvplanit: Fix new events initially being displayed as overlayed. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5151 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpdata.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tvplanit/source/vpdata.pas b/components/tvplanit/source/vpdata.pas index 19d0fbe50..6e2d24fab 100644 --- a/components/tvplanit/source/vpdata.pas +++ b/components/tvplanit/source/vpdata.pas @@ -1154,7 +1154,7 @@ var res: TVpResource; // resource to which the event belongs begin Result := false; - if (FOwner <> nil) then begin + if (FOwner <> nil) and (FResourceID > 0) then begin res := FOwner.FOwner; if (res <> nil) and (res.ResourceID <> FResourceID) then Result := true;