GNOME Bugzilla – Bug 133637
dia exports weird xfig files
Last modified: 2008-05-04 15:40:12 UTC
Hi, a Debian user reported http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=117669 where he describes files exported to the xfig format as problematic. This was with 0.88.1, but 0.92 still has a similar problem. E.g. the black structure on the gray "Computer" is missing when importing the .fig file in xfig. Thanks for considering. bye, Roland
Partially fixed in CVS: The black structure was missing due to lines becoming width 0 in fig when below a certain width in Dia. Now minimum is 1. However, there is still something wrong going on with the relative depth of the objects in the fig file. It seems to me that the order in the fig file isn't obeyed by xfig -- the two circles come out below the gray box, but when reloading into Dia, they come out right, and the ordering looks right in the file. Unfortunately, fig2dev agrees with xfig, so there must be something iffy on our side... maybe. Attaching fig diagram of single Computer object.
Created attachment 24463 [details] Single-object fig figure with depth issues.
Created attachment 54635 [details] dia file which, when exported to fig format, has incomplete line objects descriptions.
Comment on attachment 54635 [details] dia file which, when exported to fig format, has incomplete line objects descriptions. Hi, still with dia 0.94, export to fig format seems to be difficult. The attached file is a dia figure that when opened with xfig-3.2.5 (or processed by fig2dev) produce a bunch of errors saying lines objects are incomplete. First such message with fig2dev is: %fig2dev -L eps method.fig Incomplete line object at line 12.
with my recent overhaul of the xfig plug-in I've cheked this again, can't reproduce neither with 0.96.1 nor current SVN. If it is not fixed by: 2008-05-04 Hans Breuer <hans@breuer.org> * lib/geometry.[hc] lib/libdia.def: three_point_circle() calculate center point and radius given 3 points on a circle, fixed prototype and implementation to ... * plug-ins/xfig/xfig-export.c : corrected arc export for both draw_arc and fill_arc methods * plug-ins/xfig/xfig-import.c lib/create.h(create_standard_arc) : the fifth parameter was named and treated as radius alsthough it set the "curve_distance" * lib/create.c(create_standard_arc) : also the second point passed in was simply ignored. Now it moves the second handle. Part of bug #436148 or: 2006-03-21 Lars Clausen <lars@raeder.dk> * plug-ins/xfig/xfig-import.c: Last missing stack underflow check. 2006-03-19 Hans Breuer <hans@breuer.org> * plug-ins/xfig/xfig-import.c : make it compile with strict type checking [these were real errors, freeing stack passed values instead of the intended local variable] : xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' differs in levels of indirection from 'struct _Point ** ' xfig-import.c(580) : warning C4024: 'g_array_free' : different types for formal and actual parameter 1 2006-03-09 Lars Clausen <lars@raeder.dk> * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color reading, depth reading, and points reading. Thanks to if not: 2006-03-05 Lars Clausen <larsrc@raeder.dk> * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.