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:
parent
fb3703fd26
commit
30ce2be623
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue