Welcome to the fun and complexities to the CGT rules.
Basically you need to break down and separate each transaction.
On changing from an IP to a PPOR you effectively sold 49% from husband to wife. As the property is an IP up to that point this is a fully taxed CGT event. So the capital...