Looking at immodestly dressed women whilst fasting

Does going out during the day in Ramadhaan to attend to one’s needs and then being struck by the immodestly dressed women [who uncover those parts of the body which are prohibited to uncover] invalidate the fast or not?