even when the kingdom esteemed grace for her charity , intelligence , and the prudent legislative influence she had with the council , through her husband , in matters of civil law and rights , still , doctors and advisors had warned matthias that he would be left with no blood heir to his throne if he did not put away his apparently barren wife for another .