The injured party may apply for a decree of divorce, but no divorce shall affect the legitimacy of the children born previously to entering the decree in the case.