OpenToonz - An open-source full-featured 2D animation creation software
C
fix drag style undo (#1917)
shun-iwasawa0f887805c78c
diff --git a/toonz/sources/toonzlib/palettecmd.cpp b/toonz/sources/toonzlib/palettecmd.cppindex 9ebf21a8d..63fdd52c9 100644--- a/toonz/sources/toonzlib/palettecmd.cpp+++ b/toonz/sources/toonzlib/palettecmd.cpp@@ -205,7 +205,7 @@ public:int h = m_dstIndexInPage;std::set<int>::const_iterator i;for (i = m_srcIndicesInPage.begin(); i != m_srcIndicesInPage.end(); ++i) {- if (srcPage == dstPage && (*i) <= h)+ if (srcPage == dstPage && (*i) <= m_dstIndexInPage)h--;elsebreak;