mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Fix compilation error by implicit int <-> enum class conversion
This commit is contained in:
parent
447bf3ef0b
commit
9a6f635d31
@ -265,7 +265,7 @@ void ColorBar::onPaletteButtonClick()
|
|||||||
int item = m_buttons.selectedItem();
|
int item = m_buttons.selectedItem();
|
||||||
m_buttons.deselectItems();
|
m_buttons.deselectItems();
|
||||||
|
|
||||||
switch (item) {
|
switch (static_cast<PalButton>(item)) {
|
||||||
|
|
||||||
case PalButton::EDIT: {
|
case PalButton::EDIT: {
|
||||||
Command* cmd_show_palette_editor = CommandsModule::instance()->getCommandByName(CommandId::PaletteEditor);
|
Command* cmd_show_palette_editor = CommandsModule::instance()->getCommandByName(CommandId::PaletteEditor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user