[gimp] app: clean up warning in spinscale



commit 7181402a6265a7ad0b5363c61793f6379160c8ae
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 30 21:52:20 2012 +0100

    app: clean up warning in spinscale

 app/widgets/gimpspinscale.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index 807b3d1..2e0b7dc 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -3,6 +3,7 @@
  *
  * gimpspinscale.c
  * Copyright (C) 2010 Michael Natterer <mitch gimp org>
+ *               2012 Ãyvind KolÃs    <pippin gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -660,7 +661,7 @@ gimp_spin_scale_get_gamma (GimpSpinScale *scale)
 {
   GimpSpinScalePrivate *private;
 
-  g_return_if_fail (GIMP_IS_SPIN_SCALE (scale));
+  g_return_val_if_fail (GIMP_IS_SPIN_SCALE (scale), 1.0);
 
   private = GET_PRIVATE (scale);
 



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