When a dissolution of marriage is granted for the adultery of the wife, the legitimacy of children begotten of her before the commission of the adultery is not affected; but the legitimacy of other children of the wife may be determined by the court, upon the evidence in the case. SOURCE: CC § 145.