BA 951 then BA 1460 at Heathrow
Munich → London → Edinburgh
Timetable, London time
18:30BA 951 from Munich at the gate
18:25BA 1460 to Edinburgh leaves the gate
23 h 55 apart on the timetable, overnight
BA 1460 leaves 23 h 55 after BA 951 arrives on the timetable: more than half a day, so not a connection we count.