summaryrefslogtreecommitdiff
path: root/print/a2ps/files/patch-ae
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-27 16:00:26 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-27 16:00:26 +0000
commit03156fbc9e57b8833d571c09fe86a65de05d8966 (patch)
treea41583195bf11eaddcc25d81461b4a49df2cefca /print/a2ps/files/patch-ae
parent- rename patch, since it's now applied uncoditionally and remove EXTRA_PATCHE... (diff)
Add libpaper support to print/a2ps-*[1], print/c2ps-*, print/lprps-*,
graphics/jpeg2ps-*, and merge the papersize-suffixed versions into single ones respectively as print/psutils did. Approved by: dinoex (maintainer) [1]
Diffstat (limited to 'print/a2ps/files/patch-ae')
-rw-r--r--print/a2ps/files/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/print/a2ps/files/patch-ae b/print/a2ps/files/patch-ae
new file mode 100644
index 000000000000..e85e42c0dc42
--- /dev/null
+++ b/print/a2ps/files/patch-ae
@@ -0,0 +1,18 @@
+--- lib/options.c.orig Thu Sep 21 23:22:36 2000
++++ lib/options.c Thu Sep 21 23:22:42 2000
+@@ -493,6 +493,15 @@
+ /* A font size is given */
+ job->fontsize = get_length ("--font-size", cp,
+ 0.0, 0.0, "pt", range_min_strict);
++ if (job->fontsize == 0.0)
++ {
++ error (0, 0, _("invalid argument %s for -f or --font-size option"),
++ cp);
++ fprintf (stderr,
++ _("Valid arguments are floats with optonal units!\n"));
++ fprintf (stderr, _("Try `a2ps --help' for more information.\n"));
++ exit (EXIT_FAILURE);
++ }
+ job->columns_requested = 0;
+ job->lines_requested = 0;
+ }