From 8ca5b0c2f72e611c852de7904250043337257c1e Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 15 Feb 2016 17:30:01 -0300 Subject: [PATCH] Shade ink should use the full palette when we select just one color (fix #947) --- src/app/ui/context_bar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)