Skip to content

Commit

Permalink
Fix crash using Import Sprite Sheet (active tool = nullptr)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed May 26, 2017
1 parent 5ad6812 commit e316a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/ui/context_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit e316a49

Please sign in to comment.