dia r3989 - in trunk: . plug-ins/xfig



Author: hans
Date: Sun May  4 18:13:59 2008
New Revision: 3989
URL: http://svn.gnome.org/viewvc/dia?rev=3989&view=rev

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

	* plug-ins/xfig/xfig-import.c(fig_read_arc): expecept pie-wedge 
	although not completely supported. Better than refusing the whole file
	(fig_read_text) : fixed probable typo 3.54/72.0
	



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

Modified: trunk/plug-ins/xfig/xfig-import.c
==============================================================================
--- trunk/plug-ins/xfig/xfig-import.c	(original)
+++ trunk/plug-ins/xfig/xfig-import.c	Sun May  4 18:13:59 2008
@@ -875,17 +875,22 @@
     distance = distance_point_point (&p2, &pm);
 
     switch (sub_type) {
-    case 0: /* We can't do pie-wedge properly yet */
+    case 0: 
     case 1: 
+    case 2: /* We can't do pie-wedge properly yet */
 	newobj = create_standard_arc(x1/FIG_UNIT, y1/FIG_UNIT,
 				     x3/FIG_UNIT, y3/FIG_UNIT,
 				     direction ? distance : -distance, 
 				     forward_arrow_info,
 				     backward_arrow_info);
 	if (newobj == NULL) goto exit;
+	if (sub_type == 2) {
+		/* set new fill property on arc? */
+		message_warning (_("Filled arc treated as unfilled"));
+	}
 	break;
     default: 
-	message_error(_("Unknown polyline subtype: %d\n"), sub_type);
+	message_error(_("Unknown polyline arc: %d\n"), sub_type);
 	goto exit;
     }
 
@@ -990,7 +995,7 @@
 	    tprop->attr.font = dia_font_new_from_legacy_name(fig_fonts[font]);
 	}
     }
-    tprop->attr.height = font_size*3.54/72.0;
+    tprop->attr.height = font_size*2.54/72.0;
     tprop->attr.color = fig_color(color);
     newobj->ops->set_props(newobj, props);
     



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