[gimp/gimp-2-10] app: in GimpHistogram, don't initialize n_bins to 256
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in GimpHistogram, don't initialize n_bins to 256
- Date: Mon, 11 Nov 2019 16:19:11 +0000 (UTC)
commit f16ce35f8d652212fcde9c2e26011f7829dcd269
Author: Ell <ell_se yahoo com>
Date: Mon Nov 11 18:15:44 2019 +0200
app: in GimpHistogram, don't initialize n_bins to 256
... it's no longer needed, and breaks the type's invariants.
(cherry picked from commit 2a292b02e34e1fed8f7773af22d6614fef09ac37)
app/core/gimphistogram.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/app/core/gimphistogram.c b/app/core/gimphistogram.c
index 33747c492b..839f343f09 100644
--- a/app/core/gimphistogram.c
+++ b/app/core/gimphistogram.c
@@ -157,8 +157,6 @@ static void
gimp_histogram_init (GimpHistogram *histogram)
{
histogram->priv = gimp_histogram_get_instance_private (histogram);
-
- histogram->priv->n_bins = 256;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]