app: always update GimpHistogramView bins when changing histograms

... and not only when histogram != NULL, since the bin count may
change in either case.
This commit is contained in:
Ell 2018-05-11 21:41:14 -04:00
parent 4ad72cfc77
commit 44ffbe74df
1 changed files with 4 additions and 4 deletions

View File

@ -643,11 +643,11 @@ gimp_histogram_view_set_histogram (GimpHistogramView *view,
G_CALLBACK (gimp_histogram_view_notify),
view);
gimp_histogram_view_update_bins (view);
if (view->channel >= gimp_histogram_n_channels (histogram))
gimp_histogram_view_set_channel (view, GIMP_HISTOGRAM_VALUE);
}
gimp_histogram_view_update_bins (view);
}
gtk_widget_queue_draw (GTK_WIDGET (view));
@ -693,11 +693,11 @@ gimp_histogram_view_set_background (GimpHistogramView *view,
G_CALLBACK (gimp_histogram_view_notify),
view);
gimp_histogram_view_update_bins (view);
if (view->channel >= gimp_histogram_n_channels (histogram))
gimp_histogram_view_set_channel (view, GIMP_HISTOGRAM_VALUE);
}
gimp_histogram_view_update_bins (view);
}
gtk_widget_queue_draw (GTK_WIDGET (view));