[pango] Fix cairotwisted curve_length()



commit d8e2dc00c8d28e1bf8b443208497ce1ab25e0af4
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Feb 11 12:37:33 2014 -0500

    Fix cairotwisted curve_length()

 examples/cairotwisted.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index 8140417..83645dd 100644
--- a/examples/cairotwisted.c
+++ b/examples/cairotwisted.c
@@ -245,7 +245,7 @@ parametrize_path (cairo_path_t *path)
                           + two_points_distance (&data[1], &data[2])
                           + two_points_distance (&data[2], &data[3]);
        */
-       parametrization[i] = curve_length (current_point.point.x, current_point.point.x,
+       parametrization[i] = curve_length (current_point.point.x, current_point.point.y,
                                           data[1].point.x, data[1].point.y,
                                           data[2].point.x, data[2].point.y,
                                           data[3].point.x, data[3].point.y);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]