We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The timecode message is wrong when using a 2D layer in the horizontal drawing mode. Possible fix below
diff --git a/js/sigplot.js b/js/sigplot.js index 75fe004..1f7eda5 100644 --- a/js/sigplot.js +++ b/js/sigplot.js @@ -4486,7 +4486,14 @@ if ((hcb["class"] === 1) && ((hcb.xunits === 1) || (hcb.xunits === 4))) { mx.message(Mx, "Time = " + m.sec2tod(hcb.timecode + Gx.retx), true); } else if ((hcb["class"] === 2) && ((hcb.yunits === 1) || (hcb.yunits === 4))) { - mx.message(Mx, "Time = " + m.sec2tod(hcb.timecode + Gx.rety), true); + var drawdirection = Gx.lyr[0].drawdirection; + var retval; + if (drawdirection && drawdirection === "horizontal") { + retval = Gx.retx; + } else { + retval = Gx.rety; + } + mx.message(Mx, "Time = " + m.sec2tod(hcb.timecode + retval), true);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The timecode message is wrong when using a 2D layer in the horizontal drawing mode. Possible fix below
The text was updated successfully, but these errors were encountered: