app: prevent warnings in gimp_levels_tool_config_notify()

Bail out if the levels dialog is not yet fully constructed.
This commit is contained in:
Michael Natterer 2018-01-20 15:34:52 +01:00
parent 06c1dc7584
commit cdf5bf6bf7
1 changed files with 2 additions and 1 deletions

View File

@ -672,7 +672,8 @@ gimp_levels_tool_config_notify (GimpFilterTool *filter_tool,
GIMP_FILTER_TOOL_CLASS (parent_class)->config_notify (filter_tool,
config, pspec);
if (! levels_tool->channel_menu)
if (! levels_tool->channel_menu ||
! levels_tool->histogram_view)
return;
if (! strcmp (pspec->name, "linear"))