Ported a change from STABLE branch that might fix bug #84731.

2003-05-14  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/blur.c (blur): Ported a change from STABLE
	branch that might fix bug #84731.

	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gimpressionist/gimpressionist.c: Don't destroy the
	global random-state variable before rendering. Fixes bug #113007.
This commit is contained in:
Pedro Gimeno 2003-05-14 21:50:28 +00:00 committed by Pedro Gimeno Fortea
parent a5ddcd73e5
commit c397a344c0
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2003-05-14 Pedro Gimeno <pggimeno@wanadoo.es>
* plug-ins/common/blur.c (blur): Ported a change from STABLE
branch that might fix bug #84731.
* plug-ins/gimpressionist/gimp.c
* plug-ins/gimpressionist/gimpressionist.c: Don't destroy the
global random-state variable before rendering. Fixes bug #113007.
2003-05-14 Michael Natterer <mitch@gimp.org>
* app/xcf/xcf-load.c: load the old paths into new GimpVectors

View File

@ -145,6 +145,8 @@ run (gchar *name,
drawable = gimp_drawable_get(param[2].data.d_drawable);
img_has_alpha = gimp_drawable_has_alpha(drawable->drawable_id);
gr = g_rand_new();
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
@ -180,6 +182,8 @@ run (gchar *name,
status = GIMP_PDB_EXECUTION_ERROR;
}
g_rand_free (gr);
values[0].data.d_status = status;
gimp_drawable_detach(drawable);

View File

@ -517,7 +517,6 @@ static int create_dialog(void)
int create_gimpressionist(void)
{
pcvals.run = 0;
gr = g_rand_new();
if(standalone) {
pcvals = defaultpcvals;
@ -528,7 +527,6 @@ int create_gimpressionist(void)
}
gtk_main ();
g_rand_free (gr);
gdk_flush ();
return pcvals.run;
@ -565,12 +563,16 @@ int main(int argc, char **argv)
img_has_alpha = 1;
*/
gr = g_rand_new();
if(create_gimpressionist()) {
fprintf(stderr, "Painting"); fflush(stderr);
repaint(&infile, &inalpha);
saveppm(&infile, argv[1]);
}
g_rand_free (gr);
return 0;
}
#endif