mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 06:20:05 +01:00 
			
		
		
		
	TAChart: Fix incorrect operation of transformations on y axis of TConstantLineSeries (related to issue #26265)
git-svn-id: trunk@46916 -
This commit is contained in:
		
							parent
							
								
									22a782c356
								
							
						
					
					
						commit
						eb68cbfbf3
					
				@ -271,6 +271,7 @@ type
 | 
			
		||||
    function GetSeriesColor: TColor;
 | 
			
		||||
    procedure SavePosToCoord(var APoint: TDoublePoint);
 | 
			
		||||
    procedure SetArrow(AValue: TChartArrow);
 | 
			
		||||
    procedure SetAxisIndexX(AValue: TChartAxisIndex);
 | 
			
		||||
    procedure SetLineStyle(AValue: TLineStyle);
 | 
			
		||||
    procedure SetPen(AValue: TPen);
 | 
			
		||||
    procedure SetPosition(AValue: Double);
 | 
			
		||||
@ -294,7 +295,7 @@ type
 | 
			
		||||
  published
 | 
			
		||||
    property Active default true;
 | 
			
		||||
    property Arrow: TChartArrow read FArrow write SetArrow;
 | 
			
		||||
    property AxisIndexX;
 | 
			
		||||
    property AxisIndexX write SetAxisIndexX;
 | 
			
		||||
    property LineStyle: TLineStyle
 | 
			
		||||
      read FLineStyle write SetLineStyle default lsHorizontal;
 | 
			
		||||
    property Pen: TPen read FPen write SetPen;
 | 
			
		||||
@ -846,6 +847,16 @@ begin
 | 
			
		||||
  UpdateParentChart;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TConstantLine.SetAxisIndexX(AValue: TChartAxisIndex);
 | 
			
		||||
begin
 | 
			
		||||
  inherited AxisIndexX := AValue;
 | 
			
		||||
  AxisIndexY := AValue;
 | 
			
		||||
  // Make sure that both axis indexes have the same value. The ConstantLineSeries
 | 
			
		||||
  // does use only the x axis index, but transformations of the y axis outside
 | 
			
		||||
  // this unit may require tha y axis index - which would not be correct without
 | 
			
		||||
  // this here...
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TConstantLine.SetLineStyle(AValue: TLineStyle);
 | 
			
		||||
begin
 | 
			
		||||
  if FLineStyle = AValue then exit;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user