Skip to content

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

C

fix(xsheet): don't take the single-cell smart tab path for NxN selections

chantology35162bbfa432
diff --git a/toonz/sources/toonz/xsheetdragtool.cpp b/toonz/sources/toonz/xsheetdragtool.cpp
index 1e0be0b8f..151e8c87f 100644
--- a/toonz/sources/toonz/xsheetdragtool.cpp
+++ b/toonz/sources/toonz/xsheetdragtool.cpp
@@ -715,7 +715,7 @@ public:
int row = pos.frame(), col = pos.layer();
if (!m_invert) {
// Allow the negative drag
- if (row == m_r0 && m_colCount == m_rowCount == 1) {
+ if (row == m_r0 && m_colCount == 1 && m_rowCount == 1) {
int r0, c0, r1, c1;
getViewer()->getCellSelection()->getSelectedCells(r0, c0, r1, c1);
TXsheet *xsh = getViewer()->getXsheet();