BA 1487 then BA 784 at Heathrow
Glasgow → London → Stockholm
Timetable, London time
20:05BA 1487 from Glasgow at the gate
19:55BA 784 to Stockholm leaves the gate
23 h 50 apart on the timetable, overnight
BA 784 leaves 23 h 50 after BA 1487 arrives on the timetable: more than half a day, so not a connection we count.