Grammar Question

<p>Why is this a misplaced modifier?</p>

<p>By painting them this afternoon, the walls would be completely dry by tomorrow evening.</p>

<p>^The underlined portion modifies the wall, saying that the walls were the ones painting “them.” A corrected version would begin with “Having been painted this afternoon.”</p>