Which sentence contains a misplaced modifier?

A.) The woman was walking the dog in an elegant gown.
B.) The woman in the elegant gown was walking the dog.