Shade ink should use the full palette when we select just one color (fix #947)

This commit is contained in:
David Capello 2016-02-15 17:30:01 -03:00
parent dbb8a17d47
commit 8ca5b0c2f7

View File

@ -383,7 +383,10 @@ class ContextBar::InkShadesField : public HBox {
base::UniquePtr<doc::Remap> 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; i<remap->size(); ++i)