fix edge condition in stroke edge for arcs (#2854)