From 0f887805c78cc7f21d912fbdff1cf34167290a93 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Apr 18 2018 08:49:39 +0000 Subject: fix drag style undo (#1917) Do Merge --- diff --git a/toonz/sources/toonzlib/palettecmd.cpp b/toonz/sources/toonzlib/palettecmd.cpp index 9ebf21a..63fdd52 100644 --- a/toonz/sources/toonzlib/palettecmd.cpp +++ b/toonz/sources/toonzlib/palettecmd.cpp @@ -205,7 +205,7 @@ public: int h = m_dstIndexInPage; std::set::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--; else break;