From 36965d271ff8b0582199e7ea26a8bb7f9409cb69 Mon Sep 17 00:00:00 2001 From: Dave Neary Date: Fri, 24 Oct 2003 15:51:16 +0000 Subject: [PATCH] Applied a patch from Wolfgang Hofer to make 2003-10-24 Dave Neary * tools/pdbgen/pdb/paths.pdb: Applied a patch from Wolfgang Hofer to make gimp_path_get_points behave the same as in 1.2.x. Closes bug #125008. --- ChangeLog | 6 ++++++ tools/pdbgen/pdb/paths.pdb | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2f5fb3883..f6753bdaa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-10-24 Dave Neary + + * tools/pdbgen/pdb/paths.pdb: Applied a patch from + Wolfgang Hofer to make gimp_path_get_points + behave the same as in 1.2.x. Closes bug #125008. + 2003-10-24 Jakub Steiner * themes/Default/images/stock-histogram-linear-16.png diff --git a/tools/pdbgen/pdb/paths.pdb b/tools/pdbgen/pdb/paths.pdb index 75a2eb0048..a8c539bb4a 100644 --- a/tools/pdbgen/pdb/paths.pdb +++ b/tools/pdbgen/pdb/paths.pdb @@ -83,7 +83,7 @@ HELP array => { name => 'num_path_point_details', desc => 'The number of points returned. Each point is made up of (x, y, pnt_type) of floats', - alias => 'num_points', init => 1 } } + alias => 'num_point_details', init => 1 } } ); %invoke = ( @@ -95,18 +95,21 @@ HELP if (vectors) { GimpVectorsCompatPoint *points; + gint num_points; path_type = 1; /* BEZIER (1.2 compat) */ points = gimp_vectors_compat_get_points (vectors, &num_points, &path_closed); + num_point_details = num_points * 3; + if (points) { gdouble *curr_point; gint i; - points_pairs = g_new0 (gdouble, num_points * 3); + points_pairs = g_new0 (gdouble, num_point_details); for (i = 0, curr_point = points_pairs; i < num_points;