Commit 9090a984 authored by Michael Natterer's avatar Michael Natterer 😴

app: fix new g_object_ref() warnings in gimp_filter_tool_edit_as()

g_object_ref() now returns the same type that was passed in. Cast the
argument to GObject* to match the variable the return value is
assigned to.
parent fe932fe7
......@@ -1489,7 +1489,7 @@ gimp_filter_tool_edit_as (GimpFilterTool *filter_tool,
new_tool = tool_manager_get_active (display->gimp);
GIMP_FILTER_TOOL (new_tool)->default_config = g_object_ref (config);
GIMP_FILTER_TOOL (new_tool)->default_config = g_object_ref (G_OBJECT (config));
gimp_filter_tool_reset (GIMP_FILTER_TOOL (new_tool));
}
......
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