diff --git a/src/app/ui/color_bar.cpp b/src/app/ui/color_bar.cpp index e4a07a3de..df858e57d 100644 --- a/src/app/ui/color_bar.cpp +++ b/src/app/ui/color_bar.cpp @@ -404,13 +404,17 @@ void ColorBar::onPaletteViewRemapColors(const Remap& remap, const Palette* newPa void ColorBar::applyRemap(const doc::Remap& remap, const doc::Palette* newPalette, const std::string& actionText) { - if (!m_remap) { - m_remap.reset(new doc::Remap(remap)); - m_remapButton.setVisible(true); - layout(); - } - else { - m_remap->merge(remap); + doc::Site site = UIContext::instance()->activeSite(); + if (site.sprite() && + site.sprite()->pixelFormat() == IMAGE_INDEXED) { + if (!m_remap) { + m_remap.reset(new doc::Remap(remap)); + m_remapButton.setVisible(true); + layout(); + } + else { + m_remap->merge(remap); + } } setPalette(newPalette, actionText);