[cairo] [PATCH 32/39] [OpenVG] propagate errors in cairo_path_fixed_t to VGPath function

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:34 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index 7b323e4..8768831 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -285,17 +285,18 @@ static cairo_status_t
 _cairo_openvg_cairo_path_to_openvg_path (cairo_path_fixed_t *path,
                                          openvg_stroke_t    *stroke)
 {
+    cairo_status_t status = CAIRO_STATUS_SUCCESS;
     stroke->scount = 0;
     stroke->dcount = 0;
-    _cairo_path_fixed_interpret (path,
-                                 CAIRO_DIRECTION_FORWARD,
-                                 _cairo_path_to_openvg_path_move_to,
-                                 _cairo_path_to_openvg_path_line_to,
-                                 _cairo_path_to_openvg_path_curve_to,
-                                 _cairo_path_to_openvg_path_close_path,
-                                 stroke);
+    status = _cairo_path_fixed_interpret (path,
+                                          CAIRO_DIRECTION_FORWARD,
+                                          _cairo_path_to_openvg_path_move_to,
+                                          _cairo_path_to_openvg_path_line_to,
+                                          _cairo_path_to_openvg_path_curve_to,
+                                          _cairo_path_to_openvg_path_close_path,
+                                          stroke);
     vgAppendPathData(stroke->path, stroke->scount, stroke->gseg, stroke->gdata);
-    return CAIRO_STATUS_SUCCESS;
+    return status;
 }
 
 
-- 
1.6.0.4



More information about the cairo mailing list