mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +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) {
|
switch (m_hot.part) {
|
||||||
|
|
||||||
case Hit::COLOR:
|
case Hit::COLOR:
|
||||||
|
case Hit::POSSIBLE_COLOR:
|
||||||
// Clicking outside the palette range will deselect
|
// Clicking outside the palette range will deselect
|
||||||
if (m_hot.color >= currentPalette()->size()) {
|
if (m_hot.color >= m_adapter->size()) {
|
||||||
deselect();
|
deselect();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user