BA 985 then BA 1494 at Heathrow
Berlin → London → Glasgow
Timetable, London time
19:30BA 985 from Berlin at the gate
19:05BA 1494 to Glasgow leaves the gate
23 h 35 apart on the timetable, overnight
BA 1494 leaves 23 h 35 after BA 985 arrives on the timetable: more than half a day, so not a connection we count.