BA 849 then BA 1498 at Heathrow
Warsaw → London → Glasgow
Timetable, London time
21:25BA 849 from Warsaw at the gate
21:00BA 1498 to Glasgow leaves the gate
23 h 35 apart on the timetable, overnight
BA 1498 leaves 23 h 35 after BA 849 arrives on the timetable: more than half a day, so not a connection we count.