Gerard Butler and Jennifer Aniston have never appeared in a film together.
Butler's rom-coms: The Ugly Truth (Katherine Heigl), P.S. I Love You (Hilary Swank), Playing for Keeps (Jessica Biel).
Aniston's partners: Adam Sandler (Just Go with It), Vince Vaughn (The Break-Up), Paul Rudd (Wanderlust), Jason Bateman (The Switch).
You may be conflating two separate movies.