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 - ColorLine doesn't show when the Axis is Inverted
Summary: ColorLine doesn't show when the Axis is Inverted
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 140220
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-25 06:33 EDT by yeray alonso
Modified: 2014-03-27 13:52 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
ColorLine invisible when Inverted Axis (1.84 KB, application/octet-stream)
2014-03-25 06:33 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
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;