Skip to content

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

C

fix column right-click action

Ivan Mahonin36bfd90f3b6b
diff --git a/toonz/sources/toonz/columncommand.cpp b/toonz/sources/toonz/columncommand.cpp
index ed65e0773..f392ef738 100644
--- a/toonz/sources/toonz/columncommand.cpp
+++ b/toonz/sources/toonz/columncommand.cpp
@@ -1514,7 +1514,9 @@ public:
TXshColumn *column = xsh->getColumn(i);
if (!column) continue;
/*- Skip if target is in selected column mode and not selected -*/
- bool isSelected = selection && selection->isColumnSelected(i);
+ bool isSelected = selection && !selection->isEmpty()
+ ? selection->isColumnSelected(i)
+ : cc == i;
if (m_target == TARGET_SELECTED && !isSelected) continue;
/*-