Investors & landlords

If it is a gain from a stock sale the IRS computer will see the proceeds but not the capital gain.  Might be better to just file her return to avoid any question.  Be sure to check the box saying that someone else can claim her.