Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235348 - transfig not converting arrow heads
Summary: transfig not converting arrow heads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-21 09:08 UTC by renean
Modified: 2008-08-27 09:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
enables new arrow types and removes QA issues (transfig.patch,1.96 KB, patch)
2008-08-23 11:52 UTC, renean
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description renean 2008-08-21 09:08:54 UTC
When using different arrow shapes, only the basic ones can be exported to any graphics format. The diamond shaped ones e.g. cannot be exported.

Reproducible: Always

Steps to Reproduce:
Generate an xfig file with a line with a diamond shaped arrow and export to eps.
Actual Results:  
In the eps (or any other graphics format for export) no arrow heads are there.

Expected Results:  
Arrow heads should be there.

I wrote to the developer and got answer, that this is a problem of fig2dev in transfig.

In the source directory in transfig/fig2dev/bound.c remove the 
        #ifdef NEWARROWTYPES        and the
        #endif /* NEWARROWTYPES */

I tried it and it works perfectly using the latest version of xfig in portage.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2008-08-21 14:34:52 UTC
Hm I suppose it's better to add -DNEWARROWTYPES...
Comment 2 renean 2008-08-21 15:14:41 UTC
Removing the #ifdef was what the author wrote to me for solution. Of course the
definition of NEWARROWTYPES would also suffice.
Comment 3 renean 2008-08-23 11:52:34 UTC
Created attachment 163612 [details, diff]
enables new arrow types and removes QA issues

In this patch I removed the NEWARROWTYPES define because it does not occur in any other location than in fig2dev/bound.c so a define in the Imakefile (which I am also not familiar with) would have not other effect.

I also removed the QA warnings which were due to missing header inclusions.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-08-27 09:48:27 UTC
Thank you for report and patch. Fixed this in transfig-3.2.5-r2. Enjoy.