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