Skip to content

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

C

Fix moving note cells crash (#2392)

manongjohnde76948b38ff
diff --git a/toonz/sources/toonz/xshcellmover.cpp b/toonz/sources/toonz/xshcellmover.cpp
index 81f5043ee..6a5858bdf 100644
--- a/toonz/sources/toonz/xshcellmover.cpp
+++ b/toonz/sources/toonz/xshcellmover.cpp
@@ -378,7 +378,8 @@ bool LevelMoverTool::isTotallyEmptyColumn(int col) const {
TXshColumn *column = xsh->getColumn(col);
if (!column) return true;
if (!column->isEmpty()) return false;
- if (column->getFx()->getOutputConnectionCount() != 0) return false;
+ TFx *fx = column->getFx();
+ if (fx && fx->getOutputConnectionCount() != 0) return false;
// bisogna controllare lo stage object
return true;
}