That's what it does on mine (same set up) only uses the distance data when it's pointing at the subject.
on a slightly different note, is there a specific setting for fill flash on the 40D or does the camera just workout if its lighting the whole frame or just filling in the subject?