BA 873 then BA 1452 at Heathrow
Krakow → London → Edinburgh
Timetable, London time
18:05BA 873 from Krakow at the gate
13:45BA 1452 to Edinburgh leaves the gate
19 h 40 apart on the timetable, overnight
BA 1452 leaves 19 h 40 after BA 873 arrives on the timetable: more than half a day, so not a connection we count.