Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#132 (wxFreePlot) markers become invisible on XY charts

open
nobody
None
5
2012-12-15
2011-04-27
Philip Pemberton
No

[freechart] BUGFIX: H/V marker visibility check error

In some situations, the marker lines on an XY chart may become invisible. The attached patch fixes this issue.

In brief: Markers were not being checked against the correct axis. A horizontal marker line should be checked against the vertical (Y) axis (because it's plotted on that axis), while a vertical marker line should be checked against the horizontal (X) axis. This meant that if you had a Y axis value range of say 1..1000 (integer) and an X axis value range of 0.04 to 2.00 (float), any vertical markers located below value 1.0 would be ignored (half the value span).

Other code which calls Axis->IsVisible() should also be checked for correctness.

Discussion

  • Bugfix patch

     
    Attachments