BA 493 then BA 1494 at Heathrow
Gibraltar → London → Glasgow
Timetable, London time
20:50BA 493 from Gibraltar at the gate
18:55BA 1494 to Glasgow leaves the gate
22 h 05 apart on the timetable, overnight
BA 1494 leaves 22 h 05 after BA 493 arrives on the timetable: more than half a day, so not a connection we count.