Merge branch 'fix-2776' of https://github.com/ruerob/aseprite into ruerob-fix-2776

master
David Capello 2022-05-13 15:19:18 -03:00
commit b5414c5d95
1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,12 @@ bool PaletteView::onProcessMessage(Message* msg)
switch (m_hot.part) {
case Hit::COLOR:
// Clicking outside the palette range will deselect
if (m_hot.color >= currentPalette()->size()) {
deselect();
break;
}
m_state = State::SELECTING_COLOR;
// As we can ctrl+click color bar + timeline, now we have to