fixed error on how many points get initialized.

2007-09-24  Simon Budig  <simon@gimp.org>

	* app/pdb/vectors_cmds.c: fixed error on how many points get
	initialized.

	Probably fixes bug #479790.


svn path=/trunk/; revision=23644
This commit is contained in:
Simon Budig 2007-09-24 16:57:19 +00:00 committed by Simon Budig
parent fb3703fd26
commit 30ce2be623
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-09-24 Simon Budig <simon@gimp.org>
* app/pdb/vectors_cmds.c: fixed error on how many points get
initialized.
Probably fixes bug #479790.
2007-09-24 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-render.c: removed const qualifiers

View file

@ -768,8 +768,8 @@ vectors_stroke_new_from_points_invoker (GimpProcedure *procedure,
if (type == GIMP_VECTORS_STROKE_TYPE_BEZIER &&
num_points % 6 == 0)
{
coords = g_new (GimpCoords, num_points);
for (i = 0; i < num_points; i++)
coords = g_new (GimpCoords, num_points/2);
for (i = 0; i < num_points/2; i++)
{
coords[i] = default_coords;
coords[i].x = controlpoints[i*2];