Commit 4575949c authored by Ell's avatar Ell

app: in the bucket-fill tool, avoid CRITICALs when computing line-art ...

... when the current image/drawable are NULL.
parent 03a92840
......@@ -747,17 +747,17 @@ gimp_bucket_fill_compute_line_art (GimpBucketFillTool *tool)
if (image && options->sample_merged)
{
pickable = GIMP_PICKABLE (image);
g_object_unref (drawable);
g_clear_object (&drawable);
}
else if (drawable && ! options->sample_merged)
{
pickable = GIMP_PICKABLE (drawable);
g_object_unref (image);
g_clear_object (&image);
}
else
{
g_object_unref (image);
g_object_unref (drawable);
g_clear_object (&image);
g_clear_object (&drawable);
}
if (pickable)
......@@ -781,8 +781,6 @@ gimp_bucket_fill_compute_line_art (GimpBucketFillTool *tool)
(GimpAsyncCallback) gimp_bucket_fill_compute_line_art_cb,
tool);
}
else
g_object_unref (pickable);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment