What type of line is the "dashed line"? If it's a connector then this is Visio trying to reroute the Connector. Or it might be "Connector splitting". If the former then redraw the "dashed line" as a plain line rather than a connector. If the latter then try tab right-click -> Page Setup -> Layout and Routing
andturn off Connector Splitting.
|