Applied a patch from Wolfgang Hofer <hof@gimp.org> to make
2003-10-24 Dave Neary <bolsh@gimp.org>
* tools/pdbgen/pdb/paths.pdb: Applied a patch from
Wolfgang Hofer <hof@gimp.org> to make gimp_path_get_points
behave the same as in 1.2.x. Closes bug #125008.
This commit is contained in:
parent
1c93e408dd
commit
36965d271f
2 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2003-10-24 Dave Neary <bolsh@gimp.org>
|
||||
|
||||
* tools/pdbgen/pdb/paths.pdb: Applied a patch from
|
||||
Wolfgang Hofer <hof@gimp.org> to make gimp_path_get_points
|
||||
behave the same as in 1.2.x. Closes bug #125008.
|
||||
|
||||
2003-10-24 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* themes/Default/images/stock-histogram-linear-16.png
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue