Fixed off-by-one error in check for number of passed parameters.

2005-03-25  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/common/displace.c: Fixed off-by-one error in check for
	number of passed parameters.
This commit is contained in:
Kevin Cozens
2005-03-25 05:29:58 +00:00
committed by Kevin Cozens
parent 4363931bb7
commit 1c10cabaca
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-03-25 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/common/displace.c: Fixed off-by-one error in check for
number of passed parameters.
2005-03-25 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppropwidgets.[ch]: added

View File

@ -247,7 +247,7 @@ run (const gchar *name,
dvals.displace_map_x = param[7].data.d_int32;
dvals.displace_map_y = param[8].data.d_int32;
dvals.displace_type = param[9].data.d_int32;
if (nparams == 10)
if (nparams == 11)
dvals.mode = param[10].data.d_int32;
else
dvals.mode = CARTESIAN_MODE;