JAL-4375 More consistent calculation for dashed threshold line