LazStats: Fix crash of MedianPolishUnit when plot appears.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7377 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-04-13 20:12:50 +00:00
parent d3734d69db
commit bc505b84f0

View File

@ -2,6 +2,9 @@
// Tried to reproduce https://www.youtube.com/watch?v=RtC9ZMOYgk8
// --> does not work...
// wp: a file with reasonable output is LesMaySmoothin.laz with x -> dep,
// row --> Factor 1, col --> Factor2.
unit MedianPolishUnit;
{$mode objfpc}{$H+}
@ -732,8 +735,8 @@ end;
procedure TMedianPolishForm.FormCreate(Sender: TObject);
begin
Assert(OS3MainFrm <> nil);
if OutputFrm = nil then
Application.CreateForm(TOutputFrm, OutputFrm);
if GraphFrm = nil then
Application.CreateForm(TGraphFrm, GraphFrm);
end;
function TMedianPolishForm.Median(const X: DblDyneVec; ASize: integer): double;