BA 1481 then LS 3105 at Gatwick
Glasgow → London → Málaga
Timetable, London time
08:40BA 1481 from Glasgow at the gate
06:25LS 3105 to Málaga leaves the gate
21 h 45 apart on the timetable, overnight
LS 3105 leaves 21 h 45 after BA 1481 arrives on the timetable: more than half a day, so not a connection we count.