tvplanit: Fix occasional crash of application when alarmdlg is shown. Issue #39043.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8550 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-10-13 10:28:16 +00:00
parent 885da797ae
commit 72217cba80
5 changed files with 10 additions and 12 deletions

View File

@@ -184,12 +184,11 @@ begin
else
Form.BorderStyle:= bsDialog;
if (Screen.ActiveForm <> nil)
and (Screen.ActiveForm.FormStyle = fsStayOnTop) then
if (Screen.ActiveForm <> nil) and (Screen.ActiveForm.FormStyle = fsStayOnTop) then
Form.FormStyle := fsStayOnTop;
// Form.Height := FPlacement.Height;
// Form.Width := FPlacement.Width;
//Form.Height := FPlacement.Height;
//Form.Width := FPlacement.Width;
{set position}
case FPlacement.Position of