mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 13:20:28 +00:00
Fix bug selecting any tile from the color bar (fix #3357)
This commit is contained in:
parent
54fa702296
commit
eb4fbe9114
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user