From b583d03e54b43a6184e3aa814553d635261b1b7c Mon Sep 17 00:00:00 2001 From: wp Date: Mon, 4 Mar 2019 17:38:18 +0000 Subject: [PATCH] TAChart: Fix TFitSeries crashing without ParentChart (demos/runtime/plotdemo). git-svn-id: trunk@60586 - --- components/tachart/demo/runtime/plotunit/plotdemo.lpi | 10 +++++----- components/tachart/tafuncseries.pas | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/tachart/demo/runtime/plotunit/plotdemo.lpi b/components/tachart/demo/runtime/plotunit/plotdemo.lpi index 0836c996fe..8414ded647 100644 --- a/components/tachart/demo/runtime/plotunit/plotdemo.lpi +++ b/components/tachart/demo/runtime/plotunit/plotdemo.lpi @@ -1,7 +1,7 @@ - + @@ -9,7 +9,6 @@ <ResourceType Value="res"/> <UseXPManifest Value="True"/> - <Icon Value="0"/> </General> <i18n> <EnableI18N LFM="False"/> @@ -21,9 +20,10 @@ <Version Value="2"/> </PublishOptions> <RunParams> - <local> - <FormatVersion Value="1"/> - </local> + <FormatVersion Value="2"/> + <Modes Count="1"> + <Mode0 Name="default"/> + </Modes> </RunParams> <RequiredPackages Count="2"> <Item1> diff --git a/components/tachart/tafuncseries.pas b/components/tachart/tafuncseries.pas index b503b6be2d..627a841a53 100644 --- a/components/tachart/tafuncseries.pas +++ b/components/tachart/tafuncseries.pas @@ -1778,7 +1778,7 @@ var end; begin - if (State <> fpsUnknown) or not Active or IsEmpty or + if (State <> fpsUnknown) or not Active or IsEmpty or (FChart = nil) or ([csLoading, csDestroying] * ComponentState <> []) then exit;