Fix crash in sequence working when a ROI is set. (Fixes #1235)
@cissou8 I believe this should fix #1235 (closed), please can you check, and merge if you're happy?
@cissou8 I believe this should fix #1235 (closed), please can you check, and merge if you're happy?