diff --git a/toonz/sources/toonzlib/txsheet.cpp b/toonz/sources/toonzlib/txsheet.cpp index 849cea3..1bb8571 100644 --- a/toonz/sources/toonzlib/txsheet.cpp +++ b/toonz/sources/toonzlib/txsheet.cpp @@ -772,7 +772,7 @@ void TXsheet::increaseStepCells(int r0, int c0, int &r1, int c1) { // controllo se devo cambiare la selezione bool allIncreaseIsEqual = true; for (c = 0; c < ends.size() - 1 && allIncreaseIsEqual; c++) - allIncreaseIsEqual = allIncreaseIsEqual && ends[c] == ends[c + 1]; + allIncreaseIsEqual = allIncreaseIsEqual && ends[c] == ends[c + 1]; if (allIncreaseIsEqual) r1 = ends[0]; } @@ -806,7 +806,7 @@ void TXsheet::decreaseStepCells(int r0, int c0, int &r1, int c1) { // controllo se devo cambiare la selezione bool allDecreaseIsEqual = true; for (c = 0; c < ends.size() - 1 && allDecreaseIsEqual; c++) - allDecreaseIsEqual = allDecreaseIsEqual && ends[c] == ends[c + 1]; + allDecreaseIsEqual = allDecreaseIsEqual && ends[c] == ends[c + 1]; if (allDecreaseIsEqual) r1 = ends[0]; } @@ -940,7 +940,7 @@ void TXsheet::resetStepCells(int r0, int c0, int r1, int c1) { //----------------------------------------------------------------------------- /*! Roll first cells of rect r0,c0,r1,c1. Move cells contained in first row to * last row. -*/ + */ void TXsheet::rollupCells(int r0, int c0, int r1, int c1) { int nc = c1 - c0 + 1; int size = 1 * nc; @@ -963,7 +963,7 @@ void TXsheet::rollupCells(int r0, int c0, int r1, int c1) { //----------------------------------------------------------------------------- /*! Roll last cells of rect r0,c0,r1,c1. Move cells contained in last row to * first row. -*/ + */ void TXsheet::rolldownCells(int r0, int c0, int r1, int c1) { int nc = c1 - c0 + 1; int size = 1 * nc; @@ -1417,8 +1417,9 @@ void searchAudioColumn(TXsheet *xsh, std::vector &sounds, TXshColumn *column = xsh->getColumn(i); if (column) { TXshSoundColumn *soundCol = column->getSoundColumn(); - if (soundCol && ((isPreview && soundCol->isCamstandVisible()) || - (!isPreview && soundCol->isPreviewVisible()))) { + if (soundCol && !soundCol->isEmpty() && + ((isPreview && soundCol->isCamstandVisible()) || + (!isPreview && soundCol->isPreviewVisible()))) { sounds.push_back(soundCol); continue; }