mirror of https://github.com/GNOME/gimp.git
correctly pass back the nearest coordinate. Snapping sortof works.
2005-10-02 Simon Budig <simon@gimp.org> * app/vectors/gimpbezierstroke.c: correctly pass back the nearest coordinate. Snapping sortof works.
This commit is contained in:
parent
5a43a464d2
commit
e57ad0f8d0
|
@ -1,3 +1,8 @@
|
|||
2005-10-02 Simon Budig <simon@gimp.org>
|
||||
|
||||
* app/vectors/gimpbezierstroke.c: correctly pass back the
|
||||
nearest coordinate. Snapping sortof works.
|
||||
|
||||
2005-10-02 Simon Budig <simon@gimp.org>
|
||||
|
||||
* app/core/gimpcoords.c: use ABS instead of fabs.
|
||||
|
|
|
@ -204,6 +204,7 @@ gimp_bezier_stroke_class_init (GimpBezierStrokeClass *klass)
|
|||
|
||||
stroke_class->nearest_point_get = gimp_bezier_stroke_nearest_point_get;
|
||||
stroke_class->nearest_tangent_get = gimp_bezier_stroke_nearest_tangent_get;
|
||||
stroke_class->nearest_intersection_get = NULL;
|
||||
stroke_class->anchor_move_relative = gimp_bezier_stroke_anchor_move_relative;
|
||||
stroke_class->anchor_move_absolute = gimp_bezier_stroke_anchor_move_absolute;
|
||||
stroke_class->anchor_convert = gimp_bezier_stroke_anchor_convert;
|
||||
|
@ -885,6 +886,8 @@ gimp_bezier_stroke_nearest_tangent_get (const GimpStroke *stroke,
|
|||
min_dist = dist;
|
||||
if (ret_pos)
|
||||
*ret_pos = pos;
|
||||
if (nearest)
|
||||
*nearest = point;
|
||||
if (ret_segment_start)
|
||||
*ret_segment_start = segment_start;
|
||||
if (ret_segment_end)
|
||||
|
@ -922,6 +925,8 @@ gimp_bezier_stroke_nearest_tangent_get (const GimpStroke *stroke,
|
|||
min_dist = dist;
|
||||
if (ret_pos)
|
||||
*ret_pos = pos;
|
||||
if (nearest)
|
||||
*nearest = point;
|
||||
if (ret_segment_start)
|
||||
*ret_segment_start = segment_start;
|
||||
if (ret_segment_end)
|
||||
|
|
Loading…
Reference in New Issue