Fixed the newly introduced bug where not having any layer focused was crashing the app
This commit is contained in:
@@ -96,7 +96,7 @@ namespace Paint_2
|
|||||||
DebugLabel.Text = "";
|
DebugLabel.Text = "";
|
||||||
|
|
||||||
PaintTool currentTool = Project.GetCurrentTool(SelectedLayers);
|
PaintTool currentTool = Project.GetCurrentTool(SelectedLayers);
|
||||||
if (currentTool.NeedsFullRefresh)
|
if (currentTool != null && currentTool.NeedsFullRefresh)
|
||||||
{
|
{
|
||||||
canvas.Image = Project.ForcePaintLayers();
|
canvas.Image = Project.ForcePaintLayers();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user