While implementing an indicator, which draws Median Lines from a script, I recognized, that the Median Lines were drawn incorrectly.
The provided code by NT for Andrew' s Pitchfork / Median Line has a bug. It seems that it slipped through undetected or only a few people are using Median Lines form NS.
@AndrewsPitchfork.cs @ line 560:
startAnchor.CopyDataValues(pitchfork.StartAnchor); endAnchor.CopyDataValues(pitchfork.EndAnchor); extAnchor.CopyDataValues(pitchfork.EndAnchor);
startAnchor.CopyDataValues(pitchfork.StartAnchor); endAnchor.CopyDataValues(pitchfork.EndAnchor); extAnchor.CopyDataValues(pitchfork.ExtensionAnchor);
An easy fix for now is to change the file outside of NS and it will recompile it automatically. Otherwise NS will complain about modifying a system DrawingTool.
It's only related to the specific DrawingTool called from NS. Andrew's Pitchfork / Median Line works fine in NT.
Thanks.
Comment