Shape data editor causes AV
Posted: Thu Aug 29, 2013 7:05 am
Hi
I have been playing around with the YCHart MapSeries, and successfully managed to load ESRI shapefiles into a mapseries.
Howerver, when I open the TCHartedtor to review my shape coordinates a crash is caused. I added the following lines to Chart.pas, in PaintSeriesLegend(....) to fix the crash.
Regards - Hans
I have been playing around with the YCHart MapSeries, and successfully managed to load ESRI shapefiles into a mapseries.
Howerver, when I open the TCHartedtor to review my shape coordinates a crash is caused. I added the following lines to Chart.pas, in PaintSeriesLegend(....) to fix the crash.
Regards - Hans
Code: Select all
....
if Assigned(OldCanvas3D) then
begin
{$IFNDEF AUTOREFCOUNT}
{$ifdef HH_PATCH_TC_SHAPEDITOR}
if Assigned(ASeries)
and Assigned(ASeries.ParentChart) then
{$endif}
ASeries.ParentChart.Canvas.Free;
{$ENDIF}
{$ifdef HH_PATCH_TC_SHAPEDITOR}
if Assigned(ASeries)
and Assigned(ASeries.ParentChart) then
{$endif}
TCustomChart(ASeries.ParentChart).InternalCanvas:=OldCanvas3D;
....