Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 664

Summary: ColorLine doesn't show when the Axis is Inverted
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: ---    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14790
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: ColorLine invisible when Inverted Axis

Description yeray alonso 2014-03-25 06:33:48 EDT
Created attachment 130 [details]
ColorLine invisible when Inverted Axis

See the project attached.

If you don't invert any axis, you can drag the colorline, zoom & scroll without problems.

If you invert an axis, the colorline linked to it is still present but not drawn.
If you move the mouse around the chart you find the colorline because the cursor changes to drag mode, but you can't see the tool. And if you scroll, zoom or drag the invisible tool, then it seems to snap to the edges of the chartrect. Curious.
Comment 1 david berneda 2014-03-27 13:52:21 EDT
Fixed. 

This method was wrongly inverting start and ending coordinates when the axis is inverted:  TColorLineTool.GetAxisStartEnd

Correct code:

procedure TColorLineTool.GetAxisStartEnd(out AStart,AEnd:Integer);
begin
  AStart:=Axis.IStartPos;
  AEnd:=Axis.IEndPos;
end;