FR 334 then FR 3049 at Barcelona
Gdansk → Barcelona → Krakow
Timetable, Barcelona time
09:25FR 334 from Gdansk at the gate
21:40FR 3049 to Krakow leaves the gate
12 h 15 apart on the timetable
FR 3049 leaves 12 h 15 after FR 334 arrives on the timetable: more than half a day, so not a connection we count.