Bug in Y2Axis Scaling in Scale.cs
Closed this issue · 6 comments
nerndt commented
Fix is:
// If this is a Y axis, and the main Y axis is valid, use it for defaults
if (_ownerAxis is IYAxis)
{
Scale scale;
if (pane.YAxis.Scale.Valid && _ownerAxis is YAxis) // NGE12162020 Added && _ownerAxis is YAxis
scale = pane.YAxis.Scale;
else if (pane.Y2Axis.Scale.Valid && _ownerAxis is Y2Axis) // NGE12162020 Added && _ownerAxis is Y2Axis
scale = pane.Y2Axis.Scale;
else
return;
if (ReferenceEquals(this, scale))
return;
_rangeMin = scale._rangeMin;
_rangeMax = scale._rangeMax;
}
saleyn commented
Could you submit this as a pull request?
nerndt commented
Hi Serge,
I must apologize but I do not know how to submit it as a pull request. I cloned the repository, made the 2 lines of code cahnge in Scale.cs, but do not know what to do next.
Take care, Nick Nick Erndt nerndt@yahoo.com hm 650 493-7607 mobile 650 906-5970
On Friday, December 18, 2020, 10:27:58 AM PST, Serge Aleynikov <notifications@github.com> wrote:
Could you submit this as a pull request?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
saleyn commented
It is pretty easy, as outlined here:
https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
nerndt commented
Did you receive the pull request?
nerndt commented
Added pull request
saleyn commented
Thank you! Merged.