dia r3954 - in trunk: . plug-ins/vdx



Author: hans
Date: Fri Apr 25 13:08:38 2008
New Revision: 3954
URL: http://svn.gnome.org/viewvc/dia?rev=3954&view=rev

Log:
2008-04-25  Hans Breuer  <hans breuer org>

	* plug-ins/vdx/vdx-import.c : minimal handling of vdx:PolylineTo
	to avoid an endless loop, fixes bug #529882



Modified:
   trunk/ChangeLog
   trunk/plug-ins/vdx/vdx-import.c

Modified: trunk/plug-ins/vdx/vdx-import.c
==============================================================================
--- trunk/plug-ins/vdx/vdx-import.c	(original)
+++ trunk/plug-ins/vdx/vdx-import.c	Fri Apr 25 13:08:38 2008
@@ -820,6 +820,7 @@
     const GSList *item;
     struct vdx_MoveTo *MoveTo;
     struct vdx_LineTo *LineTo;
+    struct vdx_PolylineTo *PolylineTo;
     struct vdx_ArcTo *ArcTo;
     struct vdx_any *Any;
     Point *points, p;
@@ -855,6 +856,10 @@
             if (LineTo->Del) continue;
             p.x = LineTo->X; p.y = LineTo->Y;
             break;
+	case vdx_types_PolylineTo:
+            PolylineTo = (struct vdx_PolylineTo*)(item->data);
+            p.x = PolylineTo->X; p.y = PolylineTo->Y;
+	    break;
         case vdx_types_MoveTo:
             MoveTo = (struct vdx_MoveTo*)(item->data);
             p.x = MoveTo->X; p.y = MoveTo->Y;



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