The rule here is - when you have the dotted line at the end, then the orange car MUST give way. However, when the line ceases (that is there is no dotted line) then the car in front (in this case the orange car) has right of way.
The easy way to remember this is the dotted line is a ‘Give Way’...