mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 10:21:04 +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();
|
||||
m_buttons.deselectItems();
|
||||
|
||||
switch (item) {
|
||||
switch (static_cast<PalButton>(item)) {
|
||||
|
||||
case PalButton::EDIT: {
|
||||
Command* cmd_show_palette_editor = CommandsModule::instance()->getCommandByName(CommandId::PaletteEditor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user