QR 3502 then LA 5794 at Barcelona
Málaga → Barcelona → Vigo
Timetable, Barcelona time
21:10QR 3502 from Málaga at the gate
20:15LA 5794 to Vigo leaves the gate
23 h 05 apart on the timetable, overnight
LA 5794 leaves 23 h 05 after QR 3502 arrives on the timetable: more than half a day, so not a connection we count.