Fix crash using Import Sprite Sheet (active tool = nullptr)

This commit is contained in:
David Capello 2017-05-26 15:03:43 -03:00
parent 5ad681281d
commit e316a49cb9

View File

@ -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());