app: get_set_error() with domain == 0 is forbidden.

That makes critical errors:
> GLib-CRITICAL **: g_error_new_literal: assertion 'domain != 0' failed
This commit is contained in:
Jehan 2017-12-31 01:46:34 +01:00
parent 40bc5307dc
commit 9da25e6261
1 changed files with 3 additions and 3 deletions

View File

@ -259,14 +259,14 @@ gimp_image_merge_down (GimpImage *image,
{
if (gimp_viewable_get_children (GIMP_VIEWABLE (layer)))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot merge down to a layer group."));
return NULL;
}
if (gimp_item_is_content_locked (GIMP_ITEM (layer)))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("The layer to merge down to is locked."));
return NULL;
}
@ -278,7 +278,7 @@ gimp_image_merge_down (GimpImage *image,
if (! merge_list)
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("There is no visible layer to merge down to."));
return NULL;
}