BA 1499 then BA 490 at Heathrow
Glasgow → London → Gibraltar
Timetable, London time
08:10BA 1499 from Glasgow at the gate
06:45BA 490 to Gibraltar leaves the gate
22 h 35 apart on the timetable, overnight
BA 490 leaves 22 h 35 after BA 1499 arrives on the timetable: more than half a day, so not a connection we count.