OpenToonz - An open-source full-featured 2D animation creation software
C
fix cut level strip selection behavior
shun-iwasawa026f412804f5
diff --git a/toonz/sources/toonz/filmstripselection.cpp b/toonz/sources/toonz/filmstripselection.cppindex a28e09ef4..542693306 100644--- a/toonz/sources/toonz/filmstripselection.cpp+++ b/toonz/sources/toonz/filmstripselection.cpp@@ -238,10 +238,15 @@ void TFilmstripSelection::copyFrames() {void TFilmstripSelection::cutFrames() {TXshSimpleLevel *sl = TApp::instance()->getCurrentLevel()->getSimpleLevel();if (sl) {+ int firstSelectedIndex = sl->fid2index(*m_selectedFrames.begin());+ assert(firstSelectedIndex >= 0);FilmstripCmd::cut(sl, m_selectedFrames);selectNone();- TApp::instance()->getCurrentFrame()->setFid(sl->getFirstFid());- select(sl->getFirstFid());+ TFrameId fId = (firstSelectedIndex == 0)+ ? sl->getFirstFid()+ : sl->getFrameId(firstSelectedIndex - 1);+ TApp::instance()->getCurrentFrame()->setFid(fId);+ select(fId);}}