EC 8064 then BA 2642 at Gatwick
Barcelona → London → Málaga
Timetable, London time
15:00EC 8064 from Barcelona at the gate
14:35BA 2642 to Málaga leaves the gate
23 h 35 apart on the timetable, overnight
BA 2642 leaves 23 h 35 after EC 8064 arrives on the timetable: more than half a day, so not a connection we count.