gimp r25456 - in branches/weskaggs: . plug-ins/common
- From: weskaggs svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25456 - in branches/weskaggs: . plug-ins/common
- Date: Wed, 9 Apr 2008 22:49:49 +0100 (BST)
Author: weskaggs
Date: Wed Apr 9 22:49:49 2008
New Revision: 25456
URL: http://svn.gnome.org/viewvc/gimp?rev=25456&view=rev
Log:
Bill Skaggs <weskaggs primate ucdavis edu>
* plug-ins/common/randomize.c: fix handling of use_mask.
Modified:
branches/weskaggs/ChangeLog
branches/weskaggs/plug-ins/common/randomize.c
Modified: branches/weskaggs/plug-ins/common/randomize.c
==============================================================================
--- branches/weskaggs/plug-ins/common/randomize.c (original)
+++ branches/weskaggs/plug-ins/common/randomize.c Wed Apr 9 22:49:49 2008
@@ -384,10 +384,6 @@
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = status;
- /* if we are running a "variable" version, we have 8 args */
- if (nparams == 8)
- pivals.use_map = TRUE;
-
gr = g_rand_new ();
/*
* Make sure the drawable type is appropriate.
@@ -419,6 +415,8 @@
pivals.use_map = TRUE;
pivals.map_is_rgb = gimp_drawable_is_rgb (pivals.map_id);
}
+ else
+ pivals.use_map = FALSE;
if (pivals.randomize)
pivals.seed = g_random_int ();
@@ -835,7 +833,6 @@
/*
* sanity check
*/
- pivals.use_map = TRUE;
if (pivals.map_id == -1)
pivals.map_id = pivals.drawable_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]