1197. Immovables abandoned or ceded to one of the spouses by the father, mother, or any other ascendant of the spouse, either in satisfaction of debts due to the spouse by the donor, or subject to the payment of the debts due by the donor to strangers, do not fall into the community. But where, in consequence of such gift or legacy, a payment has been made from the community, compensation must be made.