View Issue Details

IDProjectCategoryView StatusLast Update
0035364LazarusTAChartpublic2019-04-12 21:12
ReporterMarcin Wiazowski Assigned Towp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1 (SVN) 
Target Version2.2 
Summary0035364: TAChart: bubble series may use uninitialized scaling
DescriptionThe problem reported here is similar to 0035207, so I'm providing only a basic description.

To reproduce, launch the attached application and press the "Show marks!" button - an exception will be raised: "[Chart1.YGraphToImage]: Image-graph scaling not yet initialized".

The attached patch solves the problem.
TagsNo tags attached.
Fixed in Revision60934
LazTarget2.2
WidgetsetWin32/Win64
Attached Files

Activities

Marcin Wiazowski

2019-04-11 23:40

reporter  

Reproduce.zip (2,443 bytes)

Marcin Wiazowski

2019-04-11 23:40

reporter  

patch.diff (490 bytes)   
Index: components/tachart/tamultiseries.pas
===================================================================
--- components/tachart/tamultiseries.pas	(revision 60932)
+++ components/tachart/tamultiseries.pas	(working copy)
@@ -877,6 +877,7 @@
 begin
   if not Marks.IsMarkLabelsVisible or not Marks.AutoMargins then exit;
   if Count = 0 then exit;
+  if not RequestValidChartScaling then exit;
 
   FindExtentInterval(ParentChart.CurrentExtent, Source.IsSorted);
   with Extent do
patch.diff (490 bytes)   

wp

2019-04-12 07:27

developer   ~0115436

Done, thanks.

Marcin Wiazowski

2019-04-12 21:12

reporter   ~0115453

Thanks!

Issue History

Date Modified Username Field Change
2019-04-11 23:40 Marcin Wiazowski New Issue
2019-04-11 23:40 Marcin Wiazowski File Added: Reproduce.zip
2019-04-11 23:40 Marcin Wiazowski File Added: patch.diff
2019-04-12 07:27 wp Fixed in Revision => 60934
2019-04-12 07:27 wp LazTarget => 2.2
2019-04-12 07:27 wp Note Added: 0115436
2019-04-12 07:27 wp Status new => resolved
2019-04-12 07:27 wp Resolution open => fixed
2019-04-12 07:27 wp Assigned To => wp
2019-04-12 07:27 wp Target Version => 2.2
2019-04-12 21:12 Marcin Wiazowski Note Added: 0115453
2019-04-12 21:12 Marcin Wiazowski Status resolved => closed