diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp index 79ec06aae..f3e334ff5 100644 --- a/src/app/ui/context_bar.cpp +++ b/src/app/ui/context_bar.cpp @@ -383,7 +383,10 @@ class ContextBar::InkShadesField : public HBox { base::UniquePtr remap; Shade colors = getShade(); - if (colors.size() > 0) { + // We need two or more colors to create a shading remap. In + // other case, the ShadingInkProcessing will use the full + // color palette. + if (colors.size() > 1) { remap.reset(new doc::Remap(get_current_palette()->size())); for (int i=0; isize(); ++i)