[gegl] rgb-clip: allow clipping to arbitrary ranges



commit b7ca074dd7ac154810491c560a7bf10cc43a7233
Author: Ell <ell_se yahoo com>
Date:   Mon Mar 23 01:13:00 2020 +0200

    rgb-clip: allow clipping to arbitrary ranges
    
    In gegl:rgb-clip, remove the restriction that low-limit <= 0 and
    high-limit >= 1, and allow arbitrary limits.  However, keep the UI
    ranges as-is.

 operations/common/rgb-clip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/rgb-clip.c b/operations/common/rgb-clip.c
index e42a57793..d9d31f903 100644
--- a/operations/common/rgb-clip.c
+++ b/operations/common/rgb-clip.c
@@ -26,7 +26,7 @@ property_boolean (clip_low, _("Clip low pixel values"), TRUE)
      description (_("Clip low pixel values"))
 
 property_double (low_limit, _("Low limit"), 0.0)
-    value_range (-G_MAXDOUBLE, 0.0)
+    value_range (-G_MAXDOUBLE, G_MAXDOUBLE)
     ui_range    (-2.0, 0.0)
     description (_("Pixels values lower than this limit will be set to it"))
     ui_meta     ("sensitive", "clip-low")
@@ -35,7 +35,7 @@ property_boolean (clip_high, _("Clip high pixel values"), TRUE)
      description (_("Clip high pixel values"))
 
 property_double (high_limit, _("High limit"), 1.0)
-    value_range (1.0, G_MAXDOUBLE)
+    value_range (-G_MAXDOUBLE, G_MAXDOUBLE)
     ui_range    (1.0, 3.0)
     description (_("Pixels values higher than this limit will be set to it"))
     ui_meta     ("sensitive", "clip-high")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]