Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix crash on cleaning up zerary column

shun-iwasawa3f76b813701d
diff --git a/toonz/sources/toonz/cleanuppopup.cpp b/toonz/sources/toonz/cleanuppopup.cpp
index 4a90bfb94..18869c31f 100644
--- a/toonz/sources/toonz/cleanuppopup.cpp
+++ b/toonz/sources/toonz/cleanuppopup.cpp
@@ -476,7 +476,7 @@ void CleanupPopup::buildCleanupList() {
const TXshCell &cell = xsh->getCell(r, c);
if (cell.isEmpty()) continue;
TXshSimpleLevel *sl = cell.getSimpleLevel();
- if (!sl && locals::supportsCleanup(sl)) continue;
+ if (!(sl && locals::supportsCleanup(sl))) continue;
/*---もし新しいLevelなら、Levelのリストに登録---*/
std::map<TXshSimpleLevel *, FramesList>::iterator it =
cleanupList.find(sl);