Fix bug selecting any tile from the color bar (fix #3357)

This commit is contained in:
David Capello 2022-06-02 10:31:15 -03:00
parent 54fa702296
commit eb4fbe9114

View File

@ -637,8 +637,9 @@ bool PaletteView::onProcessMessage(Message* msg)
switch (m_hot.part) {
case Hit::COLOR:
case Hit::POSSIBLE_COLOR:
// Clicking outside the palette range will deselect
if (m_hot.color >= currentPalette()->size()) {
if (m_hot.color >= m_adapter->size()) {
deselect();
break;
}