[gimp] app: in GimpHistogram, don't initialize n_bins to 256
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: in GimpHistogram, don't initialize n_bins to 256
- Date: Mon, 11 Nov 2019 16:18:04 +0000 (UTC)
commit 2a292b02e34e1fed8f7773af22d6614fef09ac37
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.
app/core/gimphistogram.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/app/core/gimphistogram.c b/app/core/gimphistogram.c
index 05d7944b5d..bbbd8e55f1 100644
--- a/app/core/gimphistogram.c
+++ b/app/core/gimphistogram.c
@@ -158,8 +158,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]