FR 3077 then FR 3035 at Barcelona
Stockholm → Barcelona → Krakow
Timetable, Barcelona time
19:50FR 3077 from Stockholm at the gate
11:05FR 3035 to Krakow leaves the gate
15 h 15 apart on the timetable, overnight
FR 3035 leaves 15 h 15 after FR 3077 arrives on the timetable: more than half a day, so not a connection we count.