[gegl] Bug 783399 - GIMP2.9.5 Supernova filter, Increase Radius value



commit 5db8928d1d3ebf9f87526184dd6e1fa48be5cc18
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 4 13:50:07 2017 +0200

    Bug 783399 - GIMP2.9.5 Supernova filter, Increase Radius value
    
    The radius range was way too small. Also, ui_range() must always
    be *after* value_range() because the latter sets both.

 operations/common/supernova.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/supernova.c b/operations/common/supernova.c
index 1e489c6..4cd7c36 100644
--- a/operations/common/supernova.c
+++ b/operations/common/supernova.c
@@ -44,18 +44,19 @@ property_double (center_y, _("Center Y"), 0.5)
 
 property_int (radius, _("Radius"), 20)
   description (_("Radius of supernova"))
-  ui_range (1.0, 100.0)
-  value_range (1, 3000)
+  value_range (1, 20000)
+  ui_range (1, 1000)
+  ui_meta  ("unit", "pixel-distance")
 
 property_int (spokes_count, _("Number of spokes"), 100)
   description (_("Number of spokes"))
-  ui_range (1, 1024)
   value_range (1, 1024)
+  ui_range (1, 1024)
 
 property_int (random_hue, _("Random hue"), 0)
   description (_("Random hue"))
-  ui_range (0, 360)
   value_range (0, 360)
+  ui_range (0, 360)
 
 property_color (color, _("Color"), "blue")
   description(_("The color of supernova."))


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