[dia] vdx: make compile after Bezier* cleanup



commit 1005c5ca9375676e67d214e3fef06cb2294cbb64
Author: Hans Breuer <hans breuer org>
Date:   Wed Oct 3 22:23:26 2012 +0200

    vdx: make compile after Bezier* cleanup
    
    the code should not be necessary anymore, but that needs testing.
    Basically beziercommon_set_points should take care of corner types

 plug-ins/vdx/vdx-import.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-import.c b/plug-ins/vdx/vdx-import.c
index 434a573..6f75f7c 100644
--- a/plug-ins/vdx/vdx-import.c
+++ b/plug-ins/vdx/vdx-import.c
@@ -157,10 +157,10 @@ create_vdx_beziergon(int num_points,
     /* Convert all points to cusps - not in API */
 
     bcp = (BezierConn *)new_obj;
-    for (i=0; i<bcp->numpoints; i++)
+    for (i=0; i<bcp->bezier.num_points; i++)
     {
         if (points[i].type == BEZ_CURVE_TO)
-            bcp->corner_types[i] = BEZ_CORNER_CUSP;
+            bcp->bezier.corner_types[i] = BEZ_CORNER_CUSP;
     }
 
     return new_obj;



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