From e316a49cb992764063aeac9d8674a08631489268 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 26 May 2017 15:03:43 -0300 Subject: [PATCH] Fix crash using Import Sprite Sheet (active tool = nullptr) --- src/app/ui/context_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp index 1e1788c10..1983fa9c6 100644 --- a/src/app/ui/context_bar.cpp +++ b/src/app/ui/context_bar.cpp @@ -1691,7 +1691,7 @@ void ContextBar::updateForTool(tools::Tool* tool) ((isPaint && (hasInkWithOpacity || hasImageBrush)) || (isEffect)); - const bool withDithering = + const bool withDithering = tool && (tool->getInk(0)->withDitheringOptions() || tool->getInk(1)->withDitheringOptions());