summaryrefslogtreecommitdiff
path: root/graphics/xfig-devel/files/patch-w_fontpanel.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-12-15 20:48:48 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-12-15 20:48:48 +0000
commit7120c495245c489739a5ed087d3e925b288a2602 (patch)
tree4f54732010f3c4c9966bceccd015bbd8d2c8b8af /graphics/xfig-devel/files/patch-w_fontpanel.c
parent- Update to 3.16 (diff)
- Fix xfig to be able to use Ghostscript fonts again
- While here, update download location PR: ports/117253 Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Diffstat (limited to 'graphics/xfig-devel/files/patch-w_fontpanel.c')
-rw-r--r--graphics/xfig-devel/files/patch-w_fontpanel.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/xfig-devel/files/patch-w_fontpanel.c b/graphics/xfig-devel/files/patch-w_fontpanel.c
new file mode 100644
index 000000000000..edee4939bd7c
--- /dev/null
+++ b/graphics/xfig-devel/files/patch-w_fontpanel.c
@@ -0,0 +1,20 @@
+--- w_fontpanel.c.orig Fri Feb 24 12:23:06 2006
++++ w_fontpanel.c
+@@ -143,7 +143,7 @@
+ ps_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in
+ * menu */
+ ps_fontmenu_items[i].label = ps_fontinfo[i].name;
+- ps_fontmenu_items[i].info = (caddr_t) (i - 1); /* index for font # */
++ ps_fontmenu_items[i].info = (caddr_t) i; /* index for font # */
+ }
+
+ for (i = 0; i < NUM_LATEX_FONTS; i++) {
+@@ -359,7 +359,7 @@
+ char *font_name = mi->label;
+
+ if (*flag_sel)
+- *font_ps_sel = (int) mi->info; /* set ps font to one selected */
++ *font_ps_sel = (int) mi->info - 1; /* set ps font to one selected */
+ else
+ *font_latex_sel = (int) mi->info; /* set latex font to one
+ * selected */