fix camera reframe crash due to stop hold checking

This commit is contained in:
manongjohn 2023-06-01 21:47:16 -04:00
parent 1b3bc5098c
commit 35e710d419

View file

@ -957,7 +957,8 @@ int TXsheet::reframeCells(int r0, int r1, int col, int type, int withBlank) {
for (int r = r0; r <= r1; r++) {
const TXshCell &cell = getCell(CellPosition(r, col));
if (cells.size() == 0 || cells.last() != cell) {
if (cell.isEmpty() && cells.last().getFrameId() == TFrameId::STOP_FRAME)
if (cell.isEmpty() && cells.size() &&
cells.last().getFrameId() == TFrameId::STOP_FRAME)
continue;
cells.push_back(cell);
}