From a81220d039e75e3277466c1bbb88406c409d98a3 Mon Sep 17 00:00:00 2001 From: Rodney Date: Feb 25 2022 00:47:48 +0000 Subject: Merge pull request #4280 from shun-iwasawa/fix_crash_on_cleaning_up_zerary_column Fix crash on cleaning up zerary column --- diff --git a/toonz/sources/toonz/cleanuppopup.cpp b/toonz/sources/toonz/cleanuppopup.cpp index 4a90bfb..18869c3 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::iterator it = cleanupList.find(sl);