mirror of https://github.com/GNOME/gimp.git
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:
parent
4ad72cfc77
commit
44ffbe74df
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue