 This came two years after the birth of their first son, Edmund, and two months after the birth of their second, but it had the effect of legitimating them both.His wife died in 1840.In 1838 Batthyány donated his entire library, including the mysterious Rohonc Codex, to the Hungarian Academy of Sciences.