X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=filter%2Fhpgl-main.c;fp=filter%2Fhpgl-main.c;h=953d44702b0461b22982a4e23b364133c364a1bf;hb=ed6e7faf3e76edf2b4dbcf38fdbfbfe5c387550a;hp=7660f8ed0c1640aac081b4b19c437a01e35fba07;hpb=52f6f666c3ffd368f98d5be963e2e7a92f3dc82b;p=thirdparty%2Fcups.git diff --git a/filter/hpgl-main.c b/filter/hpgl-main.c index 7660f8ed0..953d44702 100644 --- a/filter/hpgl-main.c +++ b/filter/hpgl-main.c @@ -3,7 +3,7 @@ * * HP-GL/2 filter main entry for the Common UNIX Printing System (CUPS). * - * Copyright 2007 by Apple Inc. + * Copyright 2007-2008 by Apple Inc. * Copyright 1993-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -191,8 +191,10 @@ main(int argc, /* I - Number of command-line arguments */ shading = 0; if ((val = cupsGetOption("fitplot", num_options, options)) != NULL && - strcasecmp(val, "no") && strcasecmp(val, "off") && - strcasecmp(val, "false")) + !strcasecmp(val, "true")) + FitPlot = 1; + else if ((val = cupsGetOption("fit-to-page", num_options, options)) != NULL && + !strcasecmp(val, "true")) FitPlot = 1; if ((val = cupsGetOption("penwidth", num_options, options)) != NULL)