[gimp] Bug 793276 - Make jitter scale run to 5 instead of 50



commit a86eee6ae95cbf582f3e0cb6f108b18c79732f33
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 12 12:51:23 2018 +0100

    Bug 793276 - Make jitter scale run to 5 instead of 50
    
    Limit the scale's range to [0..5] while keeping it possible to set
    jutter as large as the old maximum of 50.

 app/tools/gimppaintoptions-gui.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c
index 6be8656..f9fecbf 100644
--- a/app/tools/gimppaintoptions-gui.c
+++ b/app/tools/gimppaintoptions-gui.c
@@ -394,6 +394,7 @@ jitter_options_gui (GimpPaintOptions *paint_options,
 
   scale = gimp_prop_spin_scale_new (config, "jitter-amount", NULL,
                                     0.01, 1.0, 2);
+  gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale), 0.0, 5.0);
 
   frame = gimp_prop_expanding_frame_new (config, "use-jitter", NULL,
                                          scale, NULL);


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