After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133637 - dia exports weird xfig files
dia exports weird xfig files
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.92
Other Linux
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-06 12:58 UTC by Roland Stigge
Modified: 2008-05-04 15:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Single-object fig figure with depth issues. (1.82 KB, image/vnd-fig)
2004-02-16 21:37 UTC, Lars Clausen
Details
dia file which, when exported to fig format, has incomplete line objects descriptions. (7.55 KB, application/x-dia-diagram)
2005-11-11 13:21 UTC, Stéphane Genaud
Details

Description Roland Stigge 2004-02-06 12:58:51 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
Comment 1 Lars Clausen 2004-02-16 21:36:28 UTC
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.

Comment 2 Lars Clausen 2004-02-16 21:37:18 UTC
Created attachment 24463 [details]
Single-object fig figure with depth issues.
Comment 3 Stéphane Genaud 2005-11-11 13:21:29 UTC
Created attachment 54635 [details]
dia file which, when exported to fig format, has incomplete line objects descriptions.
Comment 4 Stéphane Genaud 2005-11-11 13:24:23 UTC
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.
Comment 5 Hans Breuer 2008-05-04 15:40:12 UTC
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.