From 89d621f926f35c49872eafd02cd07a940f6ccea1 Mon Sep 17 00:00:00 2001 From: DoctorRyan Date: Sep 16 2020 11:54:40 +0000 Subject: Fix extra selection in palette When using the new style button, sometimes the old selected style would stay highlighted. This should fix that. (Note: This bug fix was implemented in Tahoma.) --- diff --git a/toonz/sources/toonzqt/paletteviewergui.cpp b/toonz/sources/toonzqt/paletteviewergui.cpp index fddf001..162a4aa 100644 --- a/toonz/sources/toonzqt/paletteviewergui.cpp +++ b/toonz/sources/toonzqt/paletteviewergui.cpp @@ -999,6 +999,8 @@ void PageViewer::mousePressEvent(QMouseEvent *event) { if (ShowNewStyleButton && indexInPage == getChipCount() && !m_page->getPalette()->isLocked()) { PaletteCmd::createStyle(getPaletteHandle(), getPage()); + m_styleSelection->select(pageIndex); + m_styleSelection->select(pageIndex, indexInPage, true); } else { // the user clicked out of the color chips.wants to deselect everything // (leaving the selection active, for a possible paste)